accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From e..@apache.org
Subject svn commit: r1424105 - /accumulo/trunk/server/src/test/java/org/apache/accumulo/server/logger/LogFileTest.java
Date Wed, 19 Dec 2012 21:03:10 GMT
Author: ecn
Date: Wed Dec 19 21:03:10 2012
New Revision: 1424105

URL: http://svn.apache.org/viewvc?rev=1424105&view=rev
Log:
ACCUMULO-786 added timestamp setting to unit test

Modified:
    accumulo/trunk/server/src/test/java/org/apache/accumulo/server/logger/LogFileTest.java

Modified: accumulo/trunk/server/src/test/java/org/apache/accumulo/server/logger/LogFileTest.java
URL: http://svn.apache.org/viewvc/accumulo/trunk/server/src/test/java/org/apache/accumulo/server/logger/LogFileTest.java?rev=1424105&r1=1424104&r2=1424105&view=diff
==============================================================================
--- accumulo/trunk/server/src/test/java/org/apache/accumulo/server/logger/LogFileTest.java
(original)
+++ accumulo/trunk/server/src/test/java/org/apache/accumulo/server/logger/LogFileTest.java
Wed Dec 19 21:03:10 2012
@@ -31,6 +31,7 @@ import java.util.Arrays;
 import org.apache.accumulo.core.data.KeyExtent;
 import org.apache.accumulo.core.data.Mutation;
 import org.apache.accumulo.core.data.Value;
+import org.apache.accumulo.core.security.ColumnVisibility;
 import org.apache.accumulo.server.data.ServerMutation;
 import org.apache.hadoop.io.DataInputBuffer;
 import org.apache.hadoop.io.DataOutputBuffer;
@@ -92,6 +93,14 @@ public class LogFileTest {
     assertEquals(key.seq, 7);
     assertEquals(key.tid, 8);
     assertEquals(value.mutations, Arrays.asList(m));
+    m = new ServerMutation(new Text("row"));
+    m.put(new Text("cf"), new Text("cq"), new ColumnVisibility("vis"), 12345, new Value("value".getBytes()));
+    m.put(new Text("cf"), new Text("cq"), new ColumnVisibility("vis2"), new Value("value".getBytes()));
+    readWrite(MUTATION, 8, 9, null, null, new Mutation[] {m}, key, value);
+    assertEquals(key.event, MUTATION);
+    assertEquals(key.seq, 8);
+    assertEquals(key.tid, 9);
+    assertEquals(value.mutations, Arrays.asList(m));
     readWrite(MANY_MUTATIONS, 9, 10, null, null, new Mutation[] {m, m}, key, value);
     assertEquals(key.event, MANY_MUTATIONS);
     assertEquals(key.seq, 9);



Mime
View raw message