ReactiveWebServerFactoryCustomizerTests.java (spring-boot-2.7.3) | : | ReactiveWebServerFactoryCustomizerTests.java (spring-boot-2.7.4) | ||
---|---|---|---|---|
skipping to change at line 62 | skipping to change at line 62 | |||
void testCustomizeServerPort() { | void testCustomizeServerPort() { | |||
ConfigurableReactiveWebServerFactory factory = mock(ConfigurableR eactiveWebServerFactory.class); | ConfigurableReactiveWebServerFactory factory = mock(ConfigurableR eactiveWebServerFactory.class); | |||
this.properties.setPort(9000); | this.properties.setPort(9000); | |||
this.customizer.customize(factory); | this.customizer.customize(factory); | |||
then(factory).should().setPort(9000); | then(factory).should().setPort(9000); | |||
} | } | |||
@Test | @Test | |||
void testCustomizeServerAddress() { | void testCustomizeServerAddress() { | |||
ConfigurableReactiveWebServerFactory factory = mock(ConfigurableR eactiveWebServerFactory.class); | ConfigurableReactiveWebServerFactory factory = mock(ConfigurableR eactiveWebServerFactory.class); | |||
InetAddress address = mock(InetAddress.class); | InetAddress address = InetAddress.getLoopbackAddress(); | |||
this.properties.setAddress(address); | this.properties.setAddress(address); | |||
this.customizer.customize(factory); | this.customizer.customize(factory); | |||
then(factory).should().setAddress(address); | then(factory).should().setAddress(address); | |||
} | } | |||
@Test | @Test | |||
void testCustomizeServerSsl() { | void testCustomizeServerSsl() { | |||
ConfigurableReactiveWebServerFactory factory = mock(ConfigurableR eactiveWebServerFactory.class); | ConfigurableReactiveWebServerFactory factory = mock(ConfigurableR eactiveWebServerFactory.class); | |||
Ssl ssl = mock(Ssl.class); | Ssl ssl = mock(Ssl.class); | |||
this.properties.setSsl(ssl); | this.properties.setSsl(ssl); | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added |