com.gs.collections.impl.test.Verify



API Populatity

1 Client projects

Project goldmansachs/gs-collections in file ...rimitive.SynchronizedObjectBooleanHashMapTest.java (2013-05-28)
@@ -16,10 +16,11 @@
 
 package com.gs.collections.impl.map.mutable.primitive;
 
+import com.gs.collections.impl.test.Verify;
 import org.junit.Assert;
 import org.junit.Test;
 
-public class SynchronizedObjectBooleanHashMapTest extends AbstractMutableObjectBooleanHashMapTestCase
+public class SynchronizedObjectBooleanHashMapTest extends AbstractMutableObjectBooleanMapTestCase
 {
     @Override
     protected SynchronizedObjectBooleanHashMap<String> classUnderTest()
@@ -63,7 +64,8 @@ public class SynchronizedObjectBooleanHashMapTest extends AbstractMutableObjectB
     @Test
     public void asSynchronized()
     {
-        super.asSynchronized();
+        Verify.assertInstanceOf(SynchronizedObjectBooleanHashMap.class, this.map.asSynchronized());
+        Assert.assertEquals(new SynchronizedObjectBooleanHashMap<String>(this.map), this.map.asSynchronized());
         Assert.assertSame(this.map, this.map.asSynchronized());
     }
 }
Project goldmansachs/gs-collections in file ...ions.impl.block.factory.IntegerPredicatesTest.java (2014-03-05)
@@ -17,6 +17,7 @@
 package com.gs.collections.impl.block.factory;
 
 import com.gs.collections.api.block.function.Function;
+import com.gs.collections.impl.test.Verify;
 import org.junit.Assert;
 import org.junit.Test;
 
@@ -107,4 +108,10 @@ public class IntegerPredicatesTest
         Assert.assertFalse(IntegerPredicates.isNegative().accept(1));
         Assert.assertTrue(IntegerPredicates.isNegative().accept(-1));
     }
+
+    @Test
+    public void classIsNonInstantiable()
+    {
+        Verify.assertClassNonInstantiable(IntegerPredicates.class);
+    }
 }
Project goldmansachs/gs-collections in file ...ections.impl.block.factory.LongPredicatesTest.java (2014-03-05)
@@ -17,6 +17,7 @@
 package com.gs.collections.impl.block.factory;
 
 import com.gs.collections.api.block.function.Function;
+import com.gs.collections.impl.test.Verify;
 import org.junit.Assert;
 import org.junit.Test;
 
@@ -83,4 +84,10 @@ public class LongPredicatesTest
         Assert.assertFalse(LongPredicates.isNegative().accept(1L));
         Assert.assertTrue(LongPredicates.isNegative().accept(-1L));
     }
+
+    @Test
+    public void classIsNonInstantiable()
+    {
+        Verify.assertClassNonInstantiable(LongPredicates.class);
+    }
 }