Update tests to allow them to run on Java 19

Closes gh-32280
This commit is contained in:
Andy Wilkinson
2022-09-08 15:16:30 +01:00
parent 78f4242e46
commit 23c2f73b3f
10 changed files with 182 additions and 53 deletions

View File

@@ -59,7 +59,7 @@ class ReactiveWebServerFactoryCustomizerTests {
@Test
void testCustomizeServerAddress() {
ConfigurableReactiveWebServerFactory factory = mock(ConfigurableReactiveWebServerFactory.class);
InetAddress address = mock(InetAddress.class);
InetAddress address = InetAddress.getLoopbackAddress();
this.properties.setAddress(address);
this.customizer.customize(factory);
then(factory).should().setAddress(address);