use of org.springframework.boot.web.reactive.server.ConfigurableReactiveWebServerFactory in project spring-boot by spring-projects.
the class DefaultReactiveWebServerCustomizerTests method testCustomizeServerPort.
@Test
public void testCustomizeServerPort() throws Exception {
ConfigurableReactiveWebServerFactory factory = mock(ConfigurableReactiveWebServerFactory.class);
this.properties.setPort(9000);
this.customizer.customize(factory);
verify(factory).setPort(9000);
}
use of org.springframework.boot.web.reactive.server.ConfigurableReactiveWebServerFactory in project spring-boot by spring-projects.
the class ReactiveWebServerFactoryCustomizerTests method testCustomizeServerPort.
@Test
void testCustomizeServerPort() {
ConfigurableReactiveWebServerFactory factory = mock(ConfigurableReactiveWebServerFactory.class);
this.properties.setPort(9000);
this.customizer.customize(factory);
then(factory).should().setPort(9000);
}
use of org.springframework.boot.web.reactive.server.ConfigurableReactiveWebServerFactory in project spring-boot by spring-projects.
the class ReactiveWebServerFactoryCustomizerTests method testCustomizeServerAddress.
@Test
void testCustomizeServerAddress() {
ConfigurableReactiveWebServerFactory factory = mock(ConfigurableReactiveWebServerFactory.class);
InetAddress address = mock(InetAddress.class);
this.properties.setAddress(address);
this.customizer.customize(factory);
then(factory).should().setAddress(address);
}
use of org.springframework.boot.web.reactive.server.ConfigurableReactiveWebServerFactory in project spring-boot by spring-projects.
the class ReactiveWebServerFactoryCustomizerTests method testCustomizeServerSsl.
@Test
void testCustomizeServerSsl() {
ConfigurableReactiveWebServerFactory factory = mock(ConfigurableReactiveWebServerFactory.class);
Ssl ssl = mock(Ssl.class);
this.properties.setSsl(ssl);
this.customizer.customize(factory);
then(factory).should().setSsl(ssl);
}
use of org.springframework.boot.web.reactive.server.ConfigurableReactiveWebServerFactory in project spring-boot by spring-projects.
the class DefaultReactiveWebServerCustomizerTests method testCustomizeServerAddress.
@Test
public void testCustomizeServerAddress() throws Exception {
ConfigurableReactiveWebServerFactory factory = mock(ConfigurableReactiveWebServerFactory.class);
InetAddress address = mock(InetAddress.class);
this.properties.setAddress(address);
this.customizer.customize(factory);
verify(factory).setAddress(address);
}
Aggregations