From ad4a7279ddc17b11d82e448d31aa004b26e45328 Mon Sep 17 00:00:00 2001 From: Rob Winch Date: Tue, 28 Jul 2020 15:01:43 -0500 Subject: [PATCH] spring.rsocket.server.port=0 --- .../integTest/java/example/HelloRSocketApplicationITests.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/reactive/rsocket/hello-security/src/integTest/java/example/HelloRSocketApplicationITests.java b/reactive/rsocket/hello-security/src/integTest/java/example/HelloRSocketApplicationITests.java index 12a855b..d920ab1 100644 --- a/reactive/rsocket/hello-security/src/integTest/java/example/HelloRSocketApplicationITests.java +++ b/reactive/rsocket/hello-security/src/integTest/java/example/HelloRSocketApplicationITests.java @@ -25,6 +25,7 @@ import org.springframework.boot.test.context.SpringBootTest; import org.springframework.messaging.rsocket.RSocketRequester; import org.springframework.security.rsocket.metadata.SimpleAuthenticationEncoder; import org.springframework.security.rsocket.metadata.UsernamePasswordMetadata; +import org.springframework.test.context.TestPropertySource; import org.springframework.util.MimeTypeUtils; import static org.assertj.core.api.Assertions.assertThat; @@ -38,6 +39,7 @@ import static org.assertj.core.api.Assertions.assertThatThrownBy; * @since 5.0 */ @SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT) +@TestPropertySource(properties = "spring.rsocket.server.port=0") public class HelloRSocketApplicationITests { @Autowired