cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbel...@apache.org
Subject svn commit: r1082376 - /cassandra/branches/cassandra-0.7/test/unit/org/apache/cassandra/cli/CliTest.java
Date Thu, 17 Mar 2011 02:38:34 GMT
Author: jbellis
Date: Thu Mar 17 02:38:33 2011
New Revision: 1082376

URL: http://svn.apache.org/viewvc?rev=1082376&view=rev
Log:
fix CliTest on Windows
patch by Ben Coverston; reviewed by jbellis for CASSANDRA-2337

Modified:
    cassandra/branches/cassandra-0.7/test/unit/org/apache/cassandra/cli/CliTest.java

Modified: cassandra/branches/cassandra-0.7/test/unit/org/apache/cassandra/cli/CliTest.java
URL: http://svn.apache.org/viewvc/cassandra/branches/cassandra-0.7/test/unit/org/apache/cassandra/cli/CliTest.java?rev=1082376&r1=1082375&r2=1082376&view=diff
==============================================================================
--- cassandra/branches/cassandra-0.7/test/unit/org/apache/cassandra/cli/CliTest.java (original)
+++ cassandra/branches/cassandra-0.7/test/unit/org/apache/cassandra/cli/CliTest.java Thu Mar
17 02:38:33 2011
@@ -181,13 +181,13 @@ public class CliTest extends CleanupHelp
             }
             else if (statement.startsWith("set "))
             {
-                assertEquals(result, "Value inserted.\n");
+                assertEquals(result, "Value inserted." + System.getProperty("line.separator"));
             }
             else if (statement.startsWith("get "))
             {
                 if (statement.contains("where"))
                 {
-                    assertTrue(result.startsWith("-------------------\nRowKey:"));
+                    assertTrue(result.startsWith("-------------------" + System.getProperty("line.separator")
+ "RowKey:"));
                 }
                 else
                 {



Mime
View raw message