curator-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From md...@apache.org
Subject [2/3] curator git commit: CURATOR-281: Usage of TestingServer fails when upgrading to 3.0
Date Tue, 17 Nov 2015 19:39:46 GMT
CURATOR-281: Usage of TestingServer fails when upgrading to 3.0

Replace testng assertion with java assertion

Signed-off-by: Mike Drob <mdrob@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/curator/repo
Commit: http://git-wip-us.apache.org/repos/asf/curator/commit/ac266c95
Tree: http://git-wip-us.apache.org/repos/asf/curator/tree/ac266c95
Diff: http://git-wip-us.apache.org/repos/asf/curator/diff/ac266c95

Branch: refs/heads/CURATOR-3.0
Commit: ac266c9512db7c031605c1ec6e1813c1c4c299bb
Parents: 5981418
Author: Grant Henke <granthenke@gmail.com>
Authored: Thu Nov 12 22:40:27 2015 -0600
Committer: Mike Drob <mdrob@apache.org>
Committed: Tue Nov 17 13:30:11 2015 -0600

----------------------------------------------------------------------
 .../main/java/org/apache/curator/test/TestingZooKeeperMain.java   | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/curator/blob/ac266c95/curator-test/src/main/java/org/apache/curator/test/TestingZooKeeperMain.java
----------------------------------------------------------------------
diff --git a/curator-test/src/main/java/org/apache/curator/test/TestingZooKeeperMain.java
b/curator-test/src/main/java/org/apache/curator/test/TestingZooKeeperMain.java
index 330beb1..284ca24 100644
--- a/curator-test/src/main/java/org/apache/curator/test/TestingZooKeeperMain.java
+++ b/curator-test/src/main/java/org/apache/curator/test/TestingZooKeeperMain.java
@@ -32,7 +32,6 @@ import org.apache.zookeeper.server.quorum.QuorumPeer;
 import org.apache.zookeeper.server.quorum.QuorumPeerConfig;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
-import org.testng.Assert;
 import javax.management.JMException;
 import java.io.IOException;
 import java.lang.reflect.Field;
@@ -132,7 +131,7 @@ public class TestingZooKeeperMain implements ZooKeeperMainFace
     @Override
     public void blockUntilStarted() throws Exception
     {
-        Assert.assertTrue(timing.awaitLatch(latch));
+        assert timing.awaitLatch(latch);
 
         if ( zkServer != null )
         {


Mime
View raw message