BUG-7464: remove TestHelper
[yangtools.git] / third-party / triemap / src / test / java / org / opendaylight / yangtools / triemap / TestCNodeInsertionIncorrectOrder.java
index e69b95a3422be79923f5af0944a4a2ba5a16ad0e..1ab4c4be27d4ce5395734d61dc7afe706740346f 100644 (file)
@@ -15,6 +15,8 @@
  */
 package org.opendaylight.yangtools.triemap;
 
+import static org.junit.Assert.assertSame;
+
 import java.util.Map;
 import org.junit.Test;
 
@@ -22,14 +24,14 @@ public class TestCNodeInsertionIncorrectOrder {
 
     @Test
     public void testCNodeInsertionIncorrectOrder () {
-        final Map<Object, Object> map = new TrieMap<> ();
-        final Integer z3884 = Integer.valueOf (3884);
-        final Integer z4266 = Integer.valueOf (4266);
-        map.put (z3884, z3884);
-        TestHelper.assertTrue (null != map.get (z3884));
+        final Map<Integer, Integer> map = new TrieMap<>();
+        final Integer z3884 = Integer.valueOf(3884);
+        final Integer z4266 = Integer.valueOf(4266);
+        map.put(z3884, z3884);
+        assertSame(z3884, map.get(z3884));
 
-        map.put (z4266, z4266);
-        TestHelper.assertTrue (null != map.get (z3884));
-        TestHelper.assertTrue (null != map.get (z4266));
+        map.put(z4266, z4266);
+        assertSame(z3884, map.get(z3884));
+        assertSame(z4266, map.get(z4266));
     }
 }