Fix DynamicCompositeTypeTest

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

Branch: refs/heads/trunk
Commit: 049ace4c1847d39af5724538476971cbccce3ea9
Parents: f4037ed
Author: Sylvain Lebresne <sylv...@datastax.com>
Authored: Fri Oct 17 13:08:09 2014 +0200
Committer: Sylvain Lebresne <sylv...@datastax.com>
Committed: Fri Oct 17 13:08:09 2014 +0200

----------------------------------------------------------------------
 .../cassandra/db/marshal/DynamicCompositeTypeTest.java    | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/049ace4c/test/unit/org/apache/cassandra/db/marshal/DynamicCompositeTypeTest.java
----------------------------------------------------------------------
diff --git 
a/test/unit/org/apache/cassandra/db/marshal/DynamicCompositeTypeTest.java 
b/test/unit/org/apache/cassandra/db/marshal/DynamicCompositeTypeTest.java
index e248eae..e9c47a9 100644
--- a/test/unit/org/apache/cassandra/db/marshal/DynamicCompositeTypeTest.java
+++ b/test/unit/org/apache/cassandra/db/marshal/DynamicCompositeTypeTest.java
@@ -219,11 +219,11 @@ public class DynamicCompositeTypeTest extends SchemaLoader
 
         Iterator<Cell> iter = cf.getSortedColumns().iterator();
 
-        assert iter.next().name().equals(cname5);
-        assert iter.next().name().equals(cname4);
-        assert iter.next().name().equals(cname1); // null UUID < reversed value
-        assert iter.next().name().equals(cname3);
-        assert iter.next().name().equals(cname2);
+        assert iter.next().name().toByteBuffer().equals(cname5);
+        assert iter.next().name().toByteBuffer().equals(cname4);
+        assert iter.next().name().toByteBuffer().equals(cname1); // null UUID 
< reversed value
+        assert iter.next().name().toByteBuffer().equals(cname3);
+        assert iter.next().name().toByteBuffer().equals(cname2);
     }
 
     @Test

Reply via email to