Skip to content

Commit

Permalink
Merge pull request #131 from sullis/junit-4.13
Browse files Browse the repository at this point in the history
JUnit 4.13
  • Loading branch information
aaschmid authored Nov 2, 2020
2 parents f7c9755 + f5f10fa commit dc1d381
Show file tree
Hide file tree
Showing 17 changed files with 21 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ build-job: &build-job

- run: ./gradlew --build-cache --scan build -Pjunit4Version=4.10 -PjunitJupiterVersion=5.5.0 -PskipSpotBugs
- run: ./gradlew --build-cache --scan build -Pjunit4Version=4.11 -PjunitJupiterVersion=5.5.1 -PskipSpotBugs
- run: ./gradlew --build-cache --scan build -Pjunit4Version=4.12 -PjunitJupiterVersion=5.5.1 -PskipSpotBugs
- run: ./gradlew --build-cache --scan build -Pjunit4Version=4.13 -PjunitJupiterVersion=5.5.1 -PskipSpotBugs
- run: ./gradlew --build-cache --scan build
- run: COVERALLS_REPO_TOKEN=Npp4tyTSCz0wSMZTJ81vXdVe1uw6WtRrC ./gradlew --build-cache --scan jacocoRootReport coveralls

Expand Down
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ jdk:
script:
- ./gradlew --scan build -Pjunit4Version=4.10 -PjunitJupiterVersion=5.5.0 -PskipSpotBugs
- ./gradlew --scan build -Pjunit4Version=4.11 -PjunitJupiterVersion=5.5.1 -PskipSpotBugs
- ./gradlew --scan build -Pjunit4Version=4.12 -PjunitJupiterVersion=5.5.1 -PskipSpotBugs
- ./gradlew --scan build -Pjunit4Version=4.13 -PjunitJupiterVersion=5.5.1 -PskipSpotBugs
- ./gradlew --scan build

- cd ${TRAVIS_BUILD_DIR}/junit4/
Expand Down
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ val skipSpotBugs by extra(hasProperty("skipSpotBugs"))
println("Using skipSpotBugs = $skipSpotBugs for current build.")

// set default junit versions if not set via command line
val junit4Version by extra(findProperty("junit4Version")?.toString() ?: "4.12")
val junit4Version by extra(findProperty("junit4Version")?.toString() ?: "4.13")
println("Using JUnit4 version $junit4Version for current build.")
val junitJupiterVersion by extra(findProperty("junitJupiterVersion")?.toString() ?: "5.5.2")
println("Using JUnit Jupiter version $junitJupiterVersion for current build.")
Expand Down Expand Up @@ -473,7 +473,7 @@ subprojects {

// JUnit4
if (groupId.textContent == "junit" && artifactId.textContent == "junit") {
dep.getElementsByTagName("version").onlyElement().textContent = "[4.10,4.12]"
dep.getElementsByTagName("version").onlyElement().textContent = "[4.10,4.13]"
dep.getElementsByTagName("scope").onlyElement().textContent = "provided"
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

public class DataProvidersTest {

@SuppressWarnings("deprecation")
@Rule
public ExpectedException expectedException = ExpectedException.none();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

public class PreconditionsTest {

@SuppressWarnings("deprecation")
@Rule
public ExpectedException expectedException = ExpectedException.none();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

public class AbstractObjectConverterTest {

@SuppressWarnings("deprecation")
@Rule
public ExpectedException expectedException = ExpectedException.none();
@SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD", justification = "Mockito rule needs no further configuration")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

public class ConverterContextTest {

@SuppressWarnings("deprecation")
@Rule
public ExpectedException expectedException = ExpectedException.none();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

public class DataConverterTest {

@SuppressWarnings("deprecation")
@Rule
public ExpectedException expectedException = ExpectedException.none();
@SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD", justification = "Mockito rule needs no further configuration")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

public class SingleArgConverterTest {

@SuppressWarnings("deprecation")
@Rule
public ExpectedException expectedException = ExpectedException.none();
@SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD", justification = "Mockito rule needs no further configuration")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@

public class StringConverterTest {

@SuppressWarnings("deprecation")
@Rule
public ExpectedException expectedException = ExpectedException.none();
@SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD", justification = "Mockito rule needs no further configuration")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

public class ReplacementDataTest {

@SuppressWarnings("deprecation")
@Rule
public ExpectedException expectedException = ExpectedException.none();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ public List<Method> resolve(DataProviderResolverContext context) {
}
}

@SuppressWarnings("deprecation")
@Rule
public ExpectedException expectedException = ExpectedException.none();
@SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD", justification = "Mockito rule needs no further configuration")
Expand Down Expand Up @@ -245,4 +246,4 @@ public List<Method> resolve(DataProviderResolverContext context) {
return null;
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
@RunWith(MockitoJUnitRunner.class)
public class DataProviderResolverContextTest {

@SuppressWarnings("deprecation")
@Rule
public ExpectedException expectedException = ExpectedException.none();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@

public class DefaultDataProviderMethodResolverTest {

@SuppressWarnings("deprecation")
@Rule
public ExpectedException expectedException = ExpectedException.none();

Expand Down
2 changes: 1 addition & 1 deletion junit4/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

<!-- Libraries -->
<fileset id="libs.fileset" dir="${libs.dir}">
<include name="**/junit-4.12.jar" />
<include name="**/junit-4.13.jar" />
<include name="**/hamcrest-core-1.3.jar" />
<include name="**/assertj-core-1.7.1.jar" />
</fileset>
Expand Down
2 changes: 1 addition & 1 deletion junit4/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
<version>4.13</version>
<scope>provided</scope>
</dependency>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

public class PreconditionsTest {

@SuppressWarnings("deprecation")
@Rule
public ExpectedException expectedException = ExpectedException.none();

Expand Down

0 comments on commit dc1d381

Please sign in to comment.