diff --git a/.github/workflows/java-exercise.yml b/.github/workflows/java-exercise.yml index 82f721b..1fd9959 100644 --- a/.github/workflows/java-exercise.yml +++ b/.github/workflows/java-exercise.yml @@ -8,8 +8,7 @@ jobs: strategy: fail-fast: false matrix: - java: - - '11' + java: - '17' steps: - uses: actions/checkout@v3 diff --git a/topics/testing/code/pom.xml b/topics/testing/code/pom.xml index 55db059..a0165c4 100644 --- a/topics/testing/code/pom.xml +++ b/topics/testing/code/pom.xml @@ -7,7 +7,7 @@ org.springframework.boot spring-boot-starter-parent - 2.7.13 + 3.1.1 @@ -35,8 +35,8 @@ org.springdoc - springdoc-openapi-ui - 1.7.0 + springdoc-openapi-starter-webmvc-ui + 2.1.0 org.springframework.boot diff --git a/topics/testing/code/src/main/java/ch/scs/jumpstart/movierental/exercise/common/entity/Customer.java b/topics/testing/code/src/main/java/ch/scs/jumpstart/movierental/exercise/common/entity/Customer.java index 9865820..cf6eb8f 100755 --- a/topics/testing/code/src/main/java/ch/scs/jumpstart/movierental/exercise/common/entity/Customer.java +++ b/topics/testing/code/src/main/java/ch/scs/jumpstart/movierental/exercise/common/entity/Customer.java @@ -1,10 +1,10 @@ package ch.scs.jumpstart.movierental.exercise.common.entity; import com.fasterxml.jackson.annotation.JsonProperty; +import jakarta.persistence.*; import java.util.ArrayList; import java.util.List; import java.util.Objects; -import javax.persistence.*; @Entity public class Customer { diff --git a/topics/testing/code/src/main/java/ch/scs/jumpstart/movierental/exercise/common/entity/Movie.java b/topics/testing/code/src/main/java/ch/scs/jumpstart/movierental/exercise/common/entity/Movie.java index 54ed8e9..1f91340 100755 --- a/topics/testing/code/src/main/java/ch/scs/jumpstart/movierental/exercise/common/entity/Movie.java +++ b/topics/testing/code/src/main/java/ch/scs/jumpstart/movierental/exercise/common/entity/Movie.java @@ -1,8 +1,8 @@ package ch.scs.jumpstart.movierental.exercise.common.entity; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; import java.util.Objects; -import javax.persistence.Entity; -import javax.persistence.Id; @Entity public class Movie { diff --git a/topics/testing/code/src/main/java/ch/scs/jumpstart/movierental/exercise/common/entity/Rental.java b/topics/testing/code/src/main/java/ch/scs/jumpstart/movierental/exercise/common/entity/Rental.java index 850e628..2f54ca5 100755 --- a/topics/testing/code/src/main/java/ch/scs/jumpstart/movierental/exercise/common/entity/Rental.java +++ b/topics/testing/code/src/main/java/ch/scs/jumpstart/movierental/exercise/common/entity/Rental.java @@ -1,6 +1,6 @@ package ch.scs.jumpstart.movierental.exercise.common.entity; -import javax.persistence.*; +import jakarta.persistence.*; @Entity public class Rental { diff --git a/topics/testing/code/src/test/java/ch/scs/jumpstart/movierental/exercise/common/OpenApiDocIT.java b/topics/testing/code/src/test/java/ch/scs/jumpstart/movierental/exercise/common/OpenApiDocIT.java index 7487b79..aaee041 100644 --- a/topics/testing/code/src/test/java/ch/scs/jumpstart/movierental/exercise/common/OpenApiDocIT.java +++ b/topics/testing/code/src/test/java/ch/scs/jumpstart/movierental/exercise/common/OpenApiDocIT.java @@ -4,7 +4,7 @@ import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.springframework.boot.test.context.SpringBootTest; -import org.springframework.boot.web.server.LocalServerPort; +import org.springframework.boot.test.web.server.LocalServerPort; import org.springframework.test.context.ActiveProfiles; import org.springframework.test.web.reactive.server.WebTestClient; diff --git a/topics/testing/code/src/test/java/ch/scs/jumpstart/movierental/exercise/common/controller/MovieControllerIT.java b/topics/testing/code/src/test/java/ch/scs/jumpstart/movierental/exercise/common/controller/MovieControllerIT.java index 92830e0..4c82a5a 100644 --- a/topics/testing/code/src/test/java/ch/scs/jumpstart/movierental/exercise/common/controller/MovieControllerIT.java +++ b/topics/testing/code/src/test/java/ch/scs/jumpstart/movierental/exercise/common/controller/MovieControllerIT.java @@ -14,7 +14,7 @@ import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBootTest; -import org.springframework.boot.web.server.LocalServerPort; +import org.springframework.boot.test.web.server.LocalServerPort; import org.springframework.core.ParameterizedTypeReference; import org.springframework.test.context.ActiveProfiles; import org.springframework.test.web.reactive.server.WebTestClient; diff --git a/topics/testing/code/src/test/java/ch/scs/jumpstart/movierental/exercise/integrationtest/controller/SpringCustomerControllerIT.java b/topics/testing/code/src/test/java/ch/scs/jumpstart/movierental/exercise/integrationtest/controller/SpringCustomerControllerIT.java index af25bf6..de6d112 100644 --- a/topics/testing/code/src/test/java/ch/scs/jumpstart/movierental/exercise/integrationtest/controller/SpringCustomerControllerIT.java +++ b/topics/testing/code/src/test/java/ch/scs/jumpstart/movierental/exercise/integrationtest/controller/SpringCustomerControllerIT.java @@ -17,7 +17,7 @@ import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBootTest; -import org.springframework.boot.web.server.LocalServerPort; +import org.springframework.boot.test.web.server.LocalServerPort; import org.springframework.core.ParameterizedTypeReference; import org.springframework.test.context.ActiveProfiles; import org.springframework.test.web.reactive.server.WebTestClient; diff --git a/topics/testing/code/src/test/java/ch/scs/jumpstart/movierental/solution/integrationtest/controller/SolutionSpringCustomerControllerIT.java b/topics/testing/code/src/test/java/ch/scs/jumpstart/movierental/solution/integrationtest/controller/SolutionSpringCustomerControllerIT.java index 1ace8ad..e4652f9 100644 --- a/topics/testing/code/src/test/java/ch/scs/jumpstart/movierental/solution/integrationtest/controller/SolutionSpringCustomerControllerIT.java +++ b/topics/testing/code/src/test/java/ch/scs/jumpstart/movierental/solution/integrationtest/controller/SolutionSpringCustomerControllerIT.java @@ -18,7 +18,7 @@ import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBootTest; -import org.springframework.boot.web.server.LocalServerPort; +import org.springframework.boot.test.web.server.LocalServerPort; import org.springframework.core.ParameterizedTypeReference; import org.springframework.test.context.ActiveProfiles; import org.springframework.test.web.reactive.server.WebTestClient;