Skip to content

Commit 68e797f

Browse files
committed
Update Junit jupiter version to 6.0.0-RC3
Signed-off-by: Soby Chacko <[email protected]>
1 parent d613fa3 commit 68e797f

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ ext {
5959
jackson3Version = '3.0.0-rc10'
6060
jaywayJsonPathVersion = '2.9.0'
6161
junit4Version = '4.13.2'
62-
junitJupiterVersion = '5.13.4'
62+
junitJupiterVersion = '6.0.0-RC3'
6363
kafkaVersion = '4.1.0'
6464
kotlinCoroutinesVersion = '1.10.2'
6565
log4jVersion = '2.25.1'

spring-kafka-test/src/main/java/org/springframework/kafka/test/condition/LogLevelsCondition.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
import org.springframework.core.log.LogAccessor;
4141
import org.springframework.kafka.test.utils.JUnitUtils;
4242
import org.springframework.kafka.test.utils.JUnitUtils.LevelsContainer;
43+
import org.springframework.util.Assert;
4344

4445
/**
4546
* JUnit condition that adjusts and reverts log levels before/after each test.
@@ -128,6 +129,7 @@ public void afterAll(ExtensionContext context) {
128129
LogLevels logLevels = store.remove(STORE_ANNOTATION_KEY, LogLevels.class);
129130
if (logLevels != null) {
130131
LevelsContainer container = store.get(STORE_CONTAINER_KEY, LevelsContainer.class);
132+
Assert.notNull(container, "Container should not be null");
131133
JUnitUtils.revertLevels(context.getDisplayName(), container);
132134
store.remove(STORE_CONTAINER_KEY);
133135
}

0 commit comments

Comments
 (0)