accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From els...@apache.org
Subject [10/50] [abbrv] git commit: ACCUMULO-378 Adding in missing verify calls
Date Fri, 09 May 2014 15:28:48 GMT
ACCUMULO-378 Adding in missing verify calls


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

Branch: refs/heads/ACCUMULO-378
Commit: 32479af61b01a7ba888d62e2dbf41394d46e356b
Parents: cc9a72a
Author: Josh Elser <elserj@apache.org>
Authored: Thu May 1 21:20:33 2014 -0400
Committer: Josh Elser <elserj@apache.org>
Committed: Thu May 1 21:20:33 2014 -0400

----------------------------------------------------------------------
 .../apache/accumulo/server/util/ReplicationTableUtilTest.java   | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/accumulo/blob/32479af6/server/base/src/test/java/org/apache/accumulo/server/util/ReplicationTableUtilTest.java
----------------------------------------------------------------------
diff --git a/server/base/src/test/java/org/apache/accumulo/server/util/ReplicationTableUtilTest.java
b/server/base/src/test/java/org/apache/accumulo/server/util/ReplicationTableUtilTest.java
index 2fa4814..d1a43c3 100644
--- a/server/base/src/test/java/org/apache/accumulo/server/util/ReplicationTableUtilTest.java
+++ b/server/base/src/test/java/org/apache/accumulo/server/util/ReplicationTableUtilTest.java
@@ -20,6 +20,7 @@ import static org.easymock.EasyMock.createMock;
 import static org.easymock.EasyMock.expect;
 import static org.easymock.EasyMock.expectLastCall;
 import static org.easymock.EasyMock.replay;
+import static org.easymock.EasyMock.verify;
 
 import java.util.ArrayList;
 import java.util.Collections;
@@ -87,6 +88,8 @@ public class ReplicationTableUtilTest {
 
     ReplicationTableUtil.updateFiles(creds, new KeyExtent(new Text("1"), null, null), Collections.singleton(myFile),
StatusUtil.newFile());
 
+    verify(writer);
+
     Assert.assertEquals(1, mutations.size());
     Mutation m = mutations.get(0);
 
@@ -141,5 +144,7 @@ public class ReplicationTableUtilTest {
     replay(conn, tops);
 
     ReplicationTableUtil.configureMetadataTable(conn, myMetadataTable);
+
+    verify(conn, tops);
   }
 }


Mime
View raw message