Тесты контроллеров аннотируются следующим образом; если я запускаю тест, он работает.
Код: Выделить всё
@RunWith(SpringRunner.class)
@WebFluxTest
public class MyIntegrationTest {
}
Код: Выделить всё
@RunWith(SpringRunner.class)
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
@AutoConfigureWebTestClient
public class MyIntegrationTest {
}
Код: Выделить всё
reactor.core.Exceptions$ReactiveException: io.netty.channel.AbstractChannel$AnnotatedConnectException: finishConnect(..) failed: Connection refused: localhost/127.0.0.1:8080
Подробнее здесь: https://stackoverflow.com/questions/594 ... luxtest-to