From c7f4723e5bb07fe91cd8ec83e8ab3481b58ad2d0 Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Sun, 22 Mar 2020 21:59:56 +0000 Subject: [PATCH] Test build on JDK 13 (#62) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Test build on JDK 13 * Don’t use wildcard static import with AssertJ * Unpin pitest-junit5-plugin * Update changelog --- .github/workflows/maven-build.yml | 2 +- CHANGELOG.org | 2 +- pom.xml | 1 - src/test/java/net/kemitix/node/ImmutableNodeItemTest.java | 4 +++- src/test/java/net/kemitix/node/NodeItemTest.java | 4 +++- 5 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/maven-build.yml b/.github/workflows/maven-build.yml index a2d20ca..470baeb 100644 --- a/.github/workflows/maven-build.yml +++ b/.github/workflows/maven-build.yml @@ -14,7 +14,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - java: [ 8, 11 ] + java: [ 8, 11, 13 ] steps: - uses: actions/checkout@v2 - name: Set up JDK ${{ matrix.java }} diff --git a/CHANGELOG.org b/CHANGELOG.org index 5f19b75..379f6ec 100644 --- a/CHANGELOG.org +++ b/CHANGELOG.org @@ -10,11 +10,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ** Added - Add kemitix-maven-tiles 2.4.1 +- Tests run against JDK 8, 11 and 13 (#62) ** Changed - Moved: Node.drawTree to Nodes (#60) -- Pinned pitest-junit5-plugin at 0.9 (#59) - Replace Jenkins with Github Actions (#57) - [checkstyle] suppress npath complexity issues - [coverage] lower requirements diff --git a/pom.xml b/pom.xml index de0d4da..b3a445e 100644 --- a/pom.xml +++ b/pom.xml @@ -21,7 +21,6 @@ ${java.version} 2.16 2.4.1 - 0.9 5.4.0 1.18.12 3.15.0 diff --git a/src/test/java/net/kemitix/node/ImmutableNodeItemTest.java b/src/test/java/net/kemitix/node/ImmutableNodeItemTest.java index 64aaa69..6a1bf11 100644 --- a/src/test/java/net/kemitix/node/ImmutableNodeItemTest.java +++ b/src/test/java/net/kemitix/node/ImmutableNodeItemTest.java @@ -12,7 +12,9 @@ import java.util.Optional; import java.util.stream.Collectors; import java.util.stream.Stream; -import static org.assertj.core.api.Assertions.*; +import static org.assertj.core.api.Assertions.assertThat; +import static org.assertj.core.api.Assertions.assertThatExceptionOfType; +import static org.assertj.core.api.Assertions.assertThatNullPointerException; /** * Test for {@link ImmutableNodeItem}. diff --git a/src/test/java/net/kemitix/node/NodeItemTest.java b/src/test/java/net/kemitix/node/NodeItemTest.java index 7aa5158..51d3789 100644 --- a/src/test/java/net/kemitix/node/NodeItemTest.java +++ b/src/test/java/net/kemitix/node/NodeItemTest.java @@ -12,7 +12,9 @@ import java.util.Optional; import java.util.Set; import java.util.stream.Collectors; -import static org.assertj.core.api.Assertions.*; +import static org.assertj.core.api.Assertions.assertThat; +import static org.assertj.core.api.Assertions.assertThatExceptionOfType; +import static org.assertj.core.api.Assertions.assertThatNullPointerException; /** * Test for {@link NodeItem}.