cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbel...@apache.org
Subject svn commit: r1178512 - /cassandra/branches/cassandra-1.0.0/test/unit/org/apache/cassandra/io/compress/CompressedRandomAccessReaderTest.java
Date Mon, 03 Oct 2011 18:40:38 GMT
Author: jbellis
Date: Mon Oct  3 18:40:38 2011
New Revision: 1178512

URL: http://svn.apache.org/viewvc?rev=1178512&view=rev
Log:
better assert failure message

Modified:
    cassandra/branches/cassandra-1.0.0/test/unit/org/apache/cassandra/io/compress/CompressedRandomAccessReaderTest.java

Modified: cassandra/branches/cassandra-1.0.0/test/unit/org/apache/cassandra/io/compress/CompressedRandomAccessReaderTest.java
URL: http://svn.apache.org/viewvc/cassandra/branches/cassandra-1.0.0/test/unit/org/apache/cassandra/io/compress/CompressedRandomAccessReaderTest.java?rev=1178512&r1=1178511&r2=1178512&view=diff
==============================================================================
--- cassandra/branches/cassandra-1.0.0/test/unit/org/apache/cassandra/io/compress/CompressedRandomAccessReaderTest.java
(original)
+++ cassandra/branches/cassandra-1.0.0/test/unit/org/apache/cassandra/io/compress/CompressedRandomAccessReaderTest.java
Mon Oct  3 18:40:38 2011
@@ -78,7 +78,7 @@ public class CompressedRandomAccessReade
                 ? new CompressedRandomAccessReader(filename, new CompressionMetadata(filename
+ ".metadata", f.length()), false)
                 : new RandomAccessReader(f, CompressionParameters.DEFAULT_CHUNK_LENGTH, false);
             String expected = "The quick brown fox jumps over the lazy dog";
-            assert reader.length() == expected.length();
+            assertEquals(expected.length(), reader.length());
             byte[] b = new byte[expected.length()];
             reader.readFully(b);
             assert new String(b).equals(expected) : "Expecting '" + expected + "', got '"
+ new String(b) + "'";



Mime
View raw message