Skip to content

Commit

Permalink
[cleanup][tests] Use TestNG instead of JUnit (apache#15575)
Browse files Browse the repository at this point in the history
Signed-off-by: Zixuan Liu <nodeces@gmail.com>
  • Loading branch information
nodece authored May 13, 2022
1 parent 6864b0a commit 0d6e82a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
import org.apache.pulsar.tests.integration.docker.ContainerExecResult;
import org.apache.pulsar.tests.integration.io.sources.SourceTester;
import org.apache.pulsar.tests.integration.topologies.PulsarCluster;
import org.junit.Assert;
import org.testcontainers.shaded.com.google.common.base.Preconditions;
import org.testng.Assert;
import org.testng.util.Strings;

import java.io.Closeable;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ public void doPostValidationCheck(String eventType) {
String lastConfirmedFlushLsn = res.getStdout();
log.info("Current confirmedFlushLsn: \n{} \nLast confirmedFlushLsn: \n{}",
confirmedFlushLsn.get(), lastConfirmedFlushLsn);
org.junit.Assert.assertNotEquals(confirmedFlushLsn.get(), lastConfirmedFlushLsn);
Assert.assertNotEquals(confirmedFlushLsn.get(), lastConfirmedFlushLsn);
confirmedFlushLsn.set(lastConfirmedFlushLsn);
} catch (Exception e) {
Assert.fail("failed to get flush lsn", e);
Expand Down

0 comments on commit 0d6e82a

Please sign in to comment.