Skip to content

Commit 0ee546d

Browse files
committed
updates for Java 23 and JUnit 5.11
1 parent 122d5ab commit 0ee546d

File tree

13 files changed

+134
-199
lines changed
  • 1.01-starting-project-solutions
    • 1.01-project-solution-assert-equals-not-equals-AND-null-not-null
    • 1.02-project-solution-lifecycle-methods
    • 1.03-project-solution-custom-display-name
    • 1.04-project-solution-assert-same-not-same-AND-true-false
    • 1.05-project-solution-assert-array-iterable-lines
    • 1.06-project-solution-assert-throws-and-timeouts
    • 1.07-project-solution-order-tests
    • 1.08-project-solution-unit-test-reports-and-code-coverage-reports-with-intellij
    • 1.09-project-solution-unit-test-reports-and-code-coverage-reports-with-maven
    • 1.10-project-solution-conditional-tests
  • 1.12-fizzbuzz-project-solutions
    • 01-fizzbuzz-project-solution-basic
    • 02-fizzbuzz-project-solution-parameterized-tests
    • 03-fizzbuzz-project-solution-main-app

13 files changed

+134
-199
lines changed

1.01-starting-project-solutions/1.01-project-solution-assert-equals-not-equals-AND-null-not-null/pom.xml

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@
99
<version>1.0</version>
1010

1111
<properties>
12-
<maven.compiler.source>17</maven.compiler.source>
13-
<maven.compiler.target>17</maven.compiler.target>
12+
<maven.compiler.source>23</maven.compiler.source>
13+
<maven.compiler.target>23</maven.compiler.target>
1414
</properties>
1515

1616
<dependencies>
1717

1818
<dependency>
1919
<groupId>org.junit.jupiter</groupId>
2020
<artifactId>junit-jupiter</artifactId>
21-
<version>5.8.2</version>
21+
<version>5.11.4</version>
2222
<scope>test</scope>
2323
</dependency>
2424

1.01-starting-project-solutions/1.02-project-solution-lifecycle-methods/pom.xml

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@
99
<version>1.0</version>
1010

1111
<properties>
12-
<maven.compiler.source>17</maven.compiler.source>
13-
<maven.compiler.target>17</maven.compiler.target>
12+
<maven.compiler.source>23</maven.compiler.source>
13+
<maven.compiler.target>23</maven.compiler.target>
1414
</properties>
1515

1616
<dependencies>
1717

1818
<dependency>
1919
<groupId>org.junit.jupiter</groupId>
2020
<artifactId>junit-jupiter</artifactId>
21-
<version>5.8.2</version>
21+
<version>5.11.4</version>
2222
<scope>test</scope>
2323
</dependency>
2424

1.01-starting-project-solutions/1.03-project-solution-custom-display-name/pom.xml

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@
99
<version>1.0</version>
1010

1111
<properties>
12-
<maven.compiler.source>17</maven.compiler.source>
13-
<maven.compiler.target>17</maven.compiler.target>
12+
<maven.compiler.source>23</maven.compiler.source>
13+
<maven.compiler.target>23</maven.compiler.target>
1414
</properties>
1515

1616
<dependencies>
1717

1818
<dependency>
1919
<groupId>org.junit.jupiter</groupId>
2020
<artifactId>junit-jupiter</artifactId>
21-
<version>5.8.2</version>
21+
<version>5.11.4</version>
2222
<scope>test</scope>
2323
</dependency>
2424

1.01-starting-project-solutions/1.04-project-solution-assert-same-not-same-AND-true-false/pom.xml

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@
99
<version>1.0</version>
1010

1111
<properties>
12-
<maven.compiler.source>17</maven.compiler.source>
13-
<maven.compiler.target>17</maven.compiler.target>
12+
<maven.compiler.source>23</maven.compiler.source>
13+
<maven.compiler.target>23</maven.compiler.target>
1414
</properties>
1515

1616
<dependencies>
1717

1818
<dependency>
1919
<groupId>org.junit.jupiter</groupId>
2020
<artifactId>junit-jupiter</artifactId>
21-
<version>5.8.2</version>
21+
<version>5.11.4</version>
2222
<scope>test</scope>
2323
</dependency>
2424

1.01-starting-project-solutions/1.05-project-solution-assert-array-iterable-lines/pom.xml

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@
99
<version>1.0</version>
1010

1111
<properties>
12-
<maven.compiler.source>17</maven.compiler.source>
13-
<maven.compiler.target>17</maven.compiler.target>
12+
<maven.compiler.source>23</maven.compiler.source>
13+
<maven.compiler.target>23</maven.compiler.target>
1414
</properties>
1515

1616
<dependencies>
1717

1818
<dependency>
1919
<groupId>org.junit.jupiter</groupId>
2020
<artifactId>junit-jupiter</artifactId>
21-
<version>5.8.2</version>
21+
<version>5.11.4</version>
2222
<scope>test</scope>
2323
</dependency>
2424

1.01-starting-project-solutions/1.06-project-solution-assert-throws-and-timeouts/pom.xml

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@
99
<version>1.0</version>
1010

1111
<properties>
12-
<maven.compiler.source>17</maven.compiler.source>
13-
<maven.compiler.target>17</maven.compiler.target>
12+
<maven.compiler.source>23</maven.compiler.source>
13+
<maven.compiler.target>23</maven.compiler.target>
1414
</properties>
1515

1616
<dependencies>
1717

1818
<dependency>
1919
<groupId>org.junit.jupiter</groupId>
2020
<artifactId>junit-jupiter</artifactId>
21-
<version>5.8.2</version>
21+
<version>5.11.4</version>
2222
<scope>test</scope>
2323
</dependency>
2424

1.01-starting-project-solutions/1.07-project-solution-order-tests/pom.xml

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@
99
<version>1.0</version>
1010

1111
<properties>
12-
<maven.compiler.source>17</maven.compiler.source>
13-
<maven.compiler.target>17</maven.compiler.target>
12+
<maven.compiler.source>23</maven.compiler.source>
13+
<maven.compiler.target>23</maven.compiler.target>
1414
</properties>
1515

1616
<dependencies>
1717

1818
<dependency>
1919
<groupId>org.junit.jupiter</groupId>
2020
<artifactId>junit-jupiter</artifactId>
21-
<version>5.8.2</version>
21+
<version>5.11.4</version>
2222
<scope>test</scope>
2323
</dependency>
2424

1.01-starting-project-solutions/1.08-project-solution-unit-test-reports-and-code-coverage-reports-with-intellij/pom.xml

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@
99
<version>1.0</version>
1010

1111
<properties>
12-
<maven.compiler.source>17</maven.compiler.source>
13-
<maven.compiler.target>17</maven.compiler.target>
12+
<maven.compiler.source>23</maven.compiler.source>
13+
<maven.compiler.target>23</maven.compiler.target>
1414
</properties>
1515

1616
<dependencies>
1717

1818
<dependency>
1919
<groupId>org.junit.jupiter</groupId>
2020
<artifactId>junit-jupiter</artifactId>
21-
<version>5.8.2</version>
21+
<version>5.11.4</version>
2222
<scope>test</scope>
2323
</dependency>
2424

1.01-starting-project-solutions/1.09-project-solution-unit-test-reports-and-code-coverage-reports-with-maven/pom.xml

+22-35
Original file line numberDiff line numberDiff line change
@@ -9,58 +9,52 @@
99
<version>1.0</version>
1010

1111
<properties>
12-
<maven.compiler.source>17</maven.compiler.source>
13-
<maven.compiler.target>17</maven.compiler.target>
12+
<maven.compiler.source>23</maven.compiler.source>
13+
<maven.compiler.target>23</maven.compiler.target>
1414
</properties>
1515

1616
<dependencies>
1717

1818
<dependency>
1919
<groupId>org.junit.jupiter</groupId>
2020
<artifactId>junit-jupiter</artifactId>
21-
<version>5.8.2</version>
21+
<version>5.11.4</version>
2222
<scope>test</scope>
2323
</dependency>
2424

2525
</dependencies>
2626

27-
<build>
28-
<plugins>
27+
<reporting>
2928

29+
<plugins>
3030
<plugin>
3131
<groupId>org.apache.maven.plugins</groupId>
32-
<artifactId>maven-surefire-plugin</artifactId>
33-
<version>3.0.0-M5</version>
34-
32+
<artifactId>maven-surefire-report-plugin</artifactId>
33+
<version>3.5.2</version>
34+
<!--
3535
<configuration>
36-
<testFailureIgnore>true</testFailureIgnore>
37-
38-
<statelessTestsetReporter implementation="org.apache.maven.plugin.surefire.extensions.junit5.JUnit5Xml30StatelessReporter">
39-
<usePhrasedTestCaseMethodName>true</usePhrasedTestCaseMethodName>
40-
</statelessTestsetReporter>
36+
<showSuccess>false</showSuccess>
4137
</configuration>
42-
38+
-->
4339
</plugin>
4440

41+
</plugins>
42+
43+
</reporting>
44+
45+
<build>
46+
47+
<plugins>
4548
<plugin>
4649
<groupId>org.apache.maven.plugins</groupId>
47-
<artifactId>maven-surefire-report-plugin</artifactId>
48-
<version>3.0.0-M5</version>
49-
50-
<executions>
51-
<execution>
52-
<phase>test</phase>
53-
<goals>
54-
<goal>report</goal>
55-
</goals>
56-
</execution>
57-
</executions>
50+
<artifactId>maven-site-plugin</artifactId>
51+
<version>3.21.0</version>
5852
</plugin>
5953

6054
<plugin>
6155
<groupId>org.jacoco</groupId>
6256
<artifactId>jacoco-maven-plugin</artifactId>
63-
<version>0.8.7</version>
57+
<version>0.8.12</version>
6458

6559
<executions>
6660
<execution>
@@ -78,17 +72,10 @@
7872
</goals>
7973
</execution>
8074
</executions>
81-
</plugin>
8275

76+
</plugin>
8377
</plugins>
78+
8479
</build>
8580

8681
</project>
87-
88-
89-
90-
91-
92-
93-
94-

1.01-starting-project-solutions/1.10-project-solution-conditional-tests/pom.xml

+22-35
Original file line numberDiff line numberDiff line change
@@ -9,58 +9,52 @@
99
<version>1.0</version>
1010

1111
<properties>
12-
<maven.compiler.source>17</maven.compiler.source>
13-
<maven.compiler.target>17</maven.compiler.target>
12+
<maven.compiler.source>23</maven.compiler.source>
13+
<maven.compiler.target>23</maven.compiler.target>
1414
</properties>
1515

1616
<dependencies>
1717

1818
<dependency>
1919
<groupId>org.junit.jupiter</groupId>
2020
<artifactId>junit-jupiter</artifactId>
21-
<version>5.8.2</version>
21+
<version>5.11.4</version>
2222
<scope>test</scope>
2323
</dependency>
2424

2525
</dependencies>
2626

27-
<build>
28-
<plugins>
27+
<reporting>
2928

29+
<plugins>
3030
<plugin>
3131
<groupId>org.apache.maven.plugins</groupId>
32-
<artifactId>maven-surefire-plugin</artifactId>
33-
<version>3.0.0-M5</version>
34-
32+
<artifactId>maven-surefire-report-plugin</artifactId>
33+
<version>3.5.2</version>
34+
<!--
3535
<configuration>
36-
<testFailureIgnore>true</testFailureIgnore>
37-
38-
<statelessTestsetReporter implementation="org.apache.maven.plugin.surefire.extensions.junit5.JUnit5Xml30StatelessReporter">
39-
<usePhrasedTestCaseMethodName>true</usePhrasedTestCaseMethodName>
40-
</statelessTestsetReporter>
36+
<showSuccess>false</showSuccess>
4137
</configuration>
42-
38+
-->
4339
</plugin>
4440

41+
</plugins>
42+
43+
</reporting>
44+
45+
<build>
46+
47+
<plugins>
4548
<plugin>
4649
<groupId>org.apache.maven.plugins</groupId>
47-
<artifactId>maven-surefire-report-plugin</artifactId>
48-
<version>3.0.0-M5</version>
49-
50-
<executions>
51-
<execution>
52-
<phase>test</phase>
53-
<goals>
54-
<goal>report</goal>
55-
</goals>
56-
</execution>
57-
</executions>
50+
<artifactId>maven-site-plugin</artifactId>
51+
<version>3.21.0</version>
5852
</plugin>
5953

6054
<plugin>
6155
<groupId>org.jacoco</groupId>
6256
<artifactId>jacoco-maven-plugin</artifactId>
63-
<version>0.8.7</version>
57+
<version>0.8.12</version>
6458

6559
<executions>
6660
<execution>
@@ -78,17 +72,10 @@
7872
</goals>
7973
</execution>
8074
</executions>
81-
</plugin>
8275

76+
</plugin>
8377
</plugins>
78+
8479
</build>
8580

8681
</project>
87-
88-
89-
90-
91-
92-
93-
94-

0 commit comments

Comments
 (0)