From 10e366dc4b37ae239166f63e4421eb6a8743523f Mon Sep 17 00:00:00 2001 From: Enes Ozcan Date: Mon, 16 Nov 2020 12:08:13 +0300 Subject: [PATCH] Upgrade spring starter version. --- pom.xml | 2 +- .../hazelcast/springboot/CommandControllerIT.java | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/pom.xml b/pom.xml index 47148c8..b2cf348 100644 --- a/pom.xml +++ b/pom.xml @@ -11,7 +11,7 @@ org.springframework.boot spring-boot-starter-parent - 2.3.5.RELEASE + 2.4.0 diff --git a/src/test/java/guides/hazelcast/springboot/CommandControllerIT.java b/src/test/java/guides/hazelcast/springboot/CommandControllerIT.java index b420d38..9f5430c 100644 --- a/src/test/java/guides/hazelcast/springboot/CommandControllerIT.java +++ b/src/test/java/guides/hazelcast/springboot/CommandControllerIT.java @@ -2,19 +2,19 @@ import com.hazelcast.core.Hazelcast; import com.hazelcast.core.HazelcastInstance; -import org.junit.Test; -import org.junit.runner.RunWith; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.extension.ExtendWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBootTest; -import org.springframework.test.context.junit4.SpringRunner; +import org.springframework.test.context.junit.jupiter.SpringExtension; import org.springframework.test.web.reactive.server.WebTestClient; -import static org.junit.Assert.assertEquals; +import static org.junit.jupiter.api.Assertions.assertEquals; import static org.springframework.http.HttpHeaders.ACCEPT; import static org.springframework.http.MediaType.APPLICATION_JSON; import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE; -@RunWith(SpringRunner.class) +@ExtendWith(SpringExtension.class) @SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT) public class CommandControllerIT { @Autowired