cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbel...@apache.org
Subject svn commit: r758999 [2/2] - in /incubator/cassandra/trunk: src/org/apache/cassandra/db/ src/org/apache/cassandra/dht/ src/org/apache/cassandra/io/ src/org/apache/cassandra/locator/ src/org/apache/cassandra/service/ src/org/apache/cassandra/tools/ src/o...
Date Fri, 27 Mar 2009 02:44:45 GMT
Modified: incubator/cassandra/trunk/test/org/apache/cassandra/dht/RangeTest.java
URL: http://svn.apache.org/viewvc/incubator/cassandra/trunk/test/org/apache/cassandra/dht/RangeTest.java?rev=758999&r1=758998&r2=758999&view=diff
==============================================================================
--- incubator/cassandra/trunk/test/org/apache/cassandra/dht/RangeTest.java (original)
+++ incubator/cassandra/trunk/test/org/apache/cassandra/dht/RangeTest.java Fri Mar 27 02:44:44
2009
@@ -2,19 +2,17 @@
 
 import org.testng.annotations.Test;
 
-import java.math.BigInteger;
-
 public class RangeTest {
     @Test
     public void testRange() {
-        Range left = new Range(new BigInteger("0"), new BigInteger("100"));
-        assert left.contains(new BigInteger("10"));
-        assert !left.contains(new BigInteger("-1"));
-        assert !left.contains(new BigInteger("101"));
+        Range left = new Range(new BigIntegerToken("0"), new BigIntegerToken("100"));
+        assert left.contains(new BigIntegerToken("10"));
+        assert !left.contains(new BigIntegerToken("-1"));
+        assert !left.contains(new BigIntegerToken("101"));
 
-        Range right = new Range(new BigInteger("100"), new BigInteger("0"));
-        assert right.contains(new BigInteger("200"));
-        assert right.contains(new BigInteger("-10"));
-        assert !right.contains(new BigInteger("1"));
+        Range right = new Range(new BigIntegerToken("100"), new BigIntegerToken("0"));
+        assert right.contains(new BigIntegerToken("200"));
+        assert right.contains(new BigIntegerToken("-10"));
+        assert !right.contains(new BigIntegerToken("1"));
     }
 }



Mime
View raw message