Browse Source

Upgrade to JUnit Jupiter 5.6

Closes gh-24299
pull/24535/head
Sam Brannen 6 years ago
parent
commit
05301d24c1
  1. 4
      build.gradle
  2. 4
      spring-test/src/test/java/org/springframework/test/context/junit/jupiter/FailingBeforeAndAfterMethodsSpringExtensionTests.java
  3. 4
      spring-test/src/test/java/org/springframework/test/context/junit/jupiter/transaction/TimedTransactionalSpringExtensionTests.java

4
build.gradle

@ -33,7 +33,7 @@ configure(allprojects) { project -> @@ -33,7 +33,7 @@ configure(allprojects) { project ->
mavenBom "org.eclipse.jetty:jetty-bom:9.4.26.v20200117"
mavenBom "org.jetbrains.kotlin:kotlin-bom:1.3.61"
mavenBom "org.jetbrains.kotlinx:kotlinx-coroutines-bom:1.3.2"
mavenBom "org.junit:junit-bom:5.5.2"
mavenBom "org.junit:junit-bom:5.6.0"
}
dependencies {
dependencySet(group: 'org.apache.logging.log4j', version: '2.13.0') {
@ -368,7 +368,7 @@ configure([rootProject] + javaProjects) { project -> @@ -368,7 +368,7 @@ configure([rootProject] + javaProjects) { project ->
"https://fasterxml.github.io/jackson-dataformat-xml/javadoc/2.10/",
"https://hc.apache.org/httpcomponents-client-ga/httpclient/apidocs/",
"https://junit.org/junit4/javadoc/4.12/",
"https://junit.org/junit5/docs/5.5.2/api/"
"https://junit.org/junit5/docs/5.6.0/api/"
] as String[]
}

4
spring-test/src/test/java/org/springframework/test/context/junit/jupiter/FailingBeforeAndAfterMethodsSpringExtensionTests.java

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
/*
* Copyright 2002-2019 the original author or authors.
* Copyright 2002-2020 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -82,7 +82,7 @@ class FailingBeforeAndAfterMethodsSpringExtensionTests { @@ -82,7 +82,7 @@ class FailingBeforeAndAfterMethodsSpringExtensionTests {
Events events = EngineTestKit.engine("junit-jupiter")
.selectors(selectClass(testClass))
.execute()
.tests()
.testEvents()
.assertStatistics(stats -> stats
.skipped(0)
.aborted(0)

4
spring-test/src/test/java/org/springframework/test/context/junit/jupiter/transaction/TimedTransactionalSpringExtensionTests.java

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
/*
* Copyright 2002-2019 the original author or authors.
* Copyright 2002-2020 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -60,7 +60,7 @@ class TimedTransactionalSpringExtensionTests { @@ -60,7 +60,7 @@ class TimedTransactionalSpringExtensionTests {
Events events = EngineTestKit.engine("junit-jupiter")
.selectors(selectClass(TestCase.class))
.execute()
.tests()
.testEvents()
.assertStatistics(stats -> stats.started(4).succeeded(2).failed(2));
events.failed().assertThatEvents().haveExactly(2,

Loading…
Cancel
Save