KAFKA-12203 Migrate connect:mirror-client module to JUnit 5 (#9889)

Reviewers: Ismael Juma <ismael@juma.me.uk>
This commit is contained in:
Chia-Ping Tsai 2021-01-15 13:42:07 +08:00 committed by GitHub
parent c49f660c62
commit 0c92b8398d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 9 deletions

View File

@ -242,9 +242,9 @@ subprojects {
} }
// Remove the relevant project name once it's converted to JUnit 5 // Remove the relevant project name once it's converted to JUnit 5
def shouldUseJUnit5 = !(["api", "connect", "core", "file", "generator", def shouldUseJUnit5 = !(["api", "connect", "core", "file", "generator", "json", "mirror",
"json", "mirror", "mirror-client", "runtime", "transform", "streams-scala", "runtime", "transform", "examples", "streams-scala", "streams"].contains(it.project.name) ||
"streams"].contains(it.project.name) || it.project.name.startsWith("upgrade-system-tests-")) it.project.name.startsWith("upgrade-system-tests-"))
def testLoggingEvents = ["passed", "skipped", "failed"] def testLoggingEvents = ["passed", "skipped", "failed"]
def testShowStandardStreams = false def testShowStandardStreams = false
@ -2200,8 +2200,7 @@ project(':connect:mirror-client') {
compile project(':clients') compile project(':clients')
compile libs.slf4jApi compile libs.slf4jApi
testCompile libs.junitJupiterApi testCompile libs.junitJupiter
testCompile libs.junitVintageEngine
testCompile project(':clients').sourceSets.test.output testCompile project(':clients').sourceSets.test.output
testRuntime libs.slf4jlog4j testRuntime libs.slf4jlog4j

View File

@ -25,11 +25,11 @@ import java.util.HashSet;
import java.util.Arrays; import java.util.Arrays;
import java.util.concurrent.TimeoutException; import java.util.concurrent.TimeoutException;
import org.junit.Test; import org.junit.jupiter.api.Test;
import static org.junit.Assert.assertEquals; import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.Assert.assertTrue; import static org.junit.jupiter.api.Assertions.assertTrue;
import static org.junit.Assert.assertFalse; import static org.junit.jupiter.api.Assertions.assertFalse;
public class MirrorClientTest { public class MirrorClientTest {