Skip to content

Commit

Permalink
Upgrade to JUnit Jupiter 5.6
Browse files Browse the repository at this point in the history
Closes gh-24299
  • Loading branch information
sbrannen committed Feb 13, 2020
1 parent d481b81 commit 05301d2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand Down Expand Up @@ -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[]
}

Expand Down
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -82,7 +82,7 @@ void failingBeforeAndAfterCallbacks(Class<?> testClass) {
Events events = EngineTestKit.engine("junit-jupiter")
.selectors(selectClass(testClass))
.execute()
.tests()
.testEvents()
.assertStatistics(stats -> stats
.skipped(0)
.aborted(0)
Expand Down
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -60,7 +60,7 @@ void springTransactionsWorkWithJUnitJupiterTimeouts() {
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,
Expand Down

0 comments on commit 05301d2

Please sign in to comment.