Hello Micronaut people, we are looking for some he...
# micronaut
c
Hello Micronaut people, we are looking for some help with @MicronautTest We are following the instructions for JUnit5 https://micronaut-projects.github.io/micronaut-test/latest/guide/index.html but are finding that
RxHttpClient client
cannot be injected. Our test looks like this:
Copy code
@MicronautTest
class SampleControllerTest {

    @Inject
    @Client( "/")
    lateinit var client: RxHttpClient

    @Test
    fun `should return hello world`() {
        val response: String = client.toBlocking().retrieve("/test/hello")
        assertTrue(response.equals("Hello World"))
    }
}
Our code is https://github.com/stottpaul/micronaut-testcase - to recreate the problem, clone the repo and either run
./gradlew build
or just run
SampleControllerTest
from IntelliJ IDEA The stack trace is below - can anyone help us?