org.junit.contrib.truth.Truth.ASSERT-sorg.truth0.Truth.ASSERT-s



Project google/guava in file ...test.com.google.common.primitives.DoublesTest.java (2012-11-29)
@@ -17,7 +17,7 @@
 package com.google.common.primitives;
 
 import static java.lang.Double.NaN;
-import static org.junit.contrib.truth.Truth.ASSERT;
+import static org.truth0.Truth.ASSERT;
 
 import com.google.common.annotations.GwtCompatible;
 import com.google.common.annotations.GwtIncompatible;
@@ -363,7 +363,7 @@ public class DoublesTest extends TestCase {
     list.set(0, (double) 2);
     assertTrue(Arrays.equals(new double[] {(double) 2, (double) 1}, array));
     array[1] = (double) 3;
-    ASSERT.that(list).hasContentsInOrder((double) 2, (double) 3);
+    ASSERT.that(list).has().allOf((double) 2, (double) 3).inOrder();
   }
 
   public void testAsList_toArray_roundTrip() {
Project google/guava in file ....test.com.google.common.primitives.FloatsTest.java (2012-11-29)
@@ -17,7 +17,7 @@
 package com.google.common.primitives;
 
 import static java.lang.Float.NaN;
-import static org.junit.contrib.truth.Truth.ASSERT;
+import static org.truth0.Truth.ASSERT;
 
 import com.google.common.annotations.GwtCompatible;
 import com.google.common.annotations.GwtIncompatible;
@@ -354,7 +354,7 @@ public class FloatsTest extends TestCase {
     list.set(0, (float) 2);
     assertTrue(Arrays.equals(new float[] {(float) 2, (float) 1}, array));
     array[1] = (float) 3;
-    ASSERT.that(list).hasContentsInOrder((float) 2, (float) 3);
+    ASSERT.that(list).has().allOf((float) 2, (float) 3).inOrder();
   }
 
   public void testAsList_toArray_roundTrip() {
Project google/guava in file ...common.reflect.ImmutableTypeToInstanceMapTest.java (2012-11-29)
@@ -16,7 +16,7 @@
 
 package com.google.common.reflect;
 
-import static org.junit.contrib.truth.Truth.ASSERT;
+import static org.truth0.Truth.ASSERT;
 
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.Maps;
@@ -110,7 +110,7 @@ public class ImmutableTypeToInstanceMapTest extends TestCase {
             .put(type, array)
             .build();
     assertEquals(1, map.size());
-    ASSERT.that(map.getInstance(type)).hasContentsInOrder(array[0]);
+    ASSERT.that(map.getInstance(type)).has().allOf(array[0]).inOrder();
   }
 
   public void testWildcardType() {
Project google/guava in file ...e.common.reflect.MutableTypeToInstanceMapTest.java (2012-11-29)
@@ -16,7 +16,7 @@
 
 package com.google.common.reflect;
 
-import static org.junit.contrib.truth.Truth.ASSERT;
+import static org.truth0.Truth.ASSERT;
 
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableMap;
@@ -165,7 +165,7 @@ public class MutableTypeToInstanceMapTest extends TestCase {
     TypeToken<ImmutableList<Integer>[]> type = new TypeToken<ImmutableList<Integer>[]>() {};
     map.putInstance(type, array);
     assertEquals(1, map.size());
-    ASSERT.that(map.getInstance(type)).hasContentsInOrder(array[0]);
+    ASSERT.that(map.getInstance(type)).has().allOf(array[0]).inOrder();
   }
 
   public void testWildcardType() {
Project google/guava in file ...test.com.google.common.cache.CacheLoadingTest.java (2012-11-29)
@@ -22,7 +22,7 @@ import static com.google.common.cache.TestingCacheLoaders.identityLoader;
 import static com.google.common.cache.TestingRemovalListeners.countingRemovalListener;
 import static java.util.Arrays.asList;
 import static java.util.concurrent.TimeUnit.MILLISECONDS;
-import static org.junit.contrib.truth.Truth.ASSERT;
+import static org.truth0.Truth.ASSERT;
 
 import com.google.common.cache.CacheLoader.InvalidCacheLoadException;
 import com.google.common.cache.TestingCacheLoaders.CountingLoader;
@@ -437,7 +437,7 @@ public class CacheLoadingTest extends TestCase {
 
     Object[] lookupKeys = new Object[] { new Object(), new Object(), new Object() };
     Map<Object, Object> result = cache.getAll(asList(lookupKeys));
-    ASSERT.that(result.keySet()).hasContentsAnyOrder(lookupKeys);
+    ASSERT.that(result.keySet()).has().allFrom(asList(lookupKeys));
     for (Map.Entry<Object, Object> entry : result.entrySet()) {
       Object key = entry.getKey();
       Object value = entry.getValue();
@@ -474,7 +474,7 @@ public class CacheLoadingTest extends TestCase {
 
     Object[] lookupKeys = new Object[] { new Object(), new Object(), new Object() };
     Map<Object, Object> result = cache.getAll(asList(lookupKeys));
-    ASSERT.that(result.keySet()).hasContentsAnyOrder(lookupKeys);
+    ASSERT.that(result.keySet()).has().allFrom(asList(lookupKeys));
     for (Map.Entry<Object, Object> entry : result.entrySet()) {
       Object key = entry.getKey();
       Object value = entry.getValue();