import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
-import static org.mockito.ArgumentMatchers.any;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.web.reactive.WebFluxTest;
import org.springframework.boot.test.mock.mockito.MockBean;
import org.springframework.test.context.junit.jupiter.SpringExtension;
import org.springframework.test.web.reactive.server.WebTestClient;
-import reactor.core.publisher.Mono;
-import static reactor.core.publisher.Mono.when;
/**
@Test
void testHtmlController()
{
- when(service.getRemoteText(any(String.class))).thenReturn(Mono.just("bar"));
webClient
.get()
.uri("/?path=foo")