4 import org.junit.jupiter.api.Test;
5 import org.junit.jupiter.api.extension.ExtendWith;
6 import static org.mockito.ArgumentMatchers.any;
7 import org.springframework.beans.factory.annotation.Autowired;
8 import org.springframework.boot.test.autoconfigure.web.reactive.WebFluxTest;
9 import org.springframework.boot.test.mock.mockito.MockBean;
10 import org.springframework.test.context.junit.jupiter.SpringExtension;
11 import org.springframework.test.web.reactive.server.WebTestClient;
12 import reactor.core.publisher.Mono;
13 import static reactor.core.publisher.Mono.when;
17 * Narrow Integration-Test for the mappings (URL -> controller).
20 @ExtendWith(SpringExtension.class)
22 public class MappingIT
25 WebTestClient webClient;
27 RemoteContentService service;
31 void testHtmlController()
33 when(service.getRemoteText(any(String.class))).thenReturn(Mono.just("bar"));
38 .expectStatus().isOk();