Browse Source

KERNEL-1118 删除注释代码

master
Mars.Ma 5 years ago
parent
commit
1385d35655
  1. 15
      src/test/java/com/fanruan/api/util/AssistKitTest.java

15
src/test/java/com/fanruan/api/util/AssistKitTest.java

@ -34,16 +34,12 @@ public class AssistKitTest {
public void equals3() { public void equals3() {
Object a = 126; Object a = 126;
Object b = 126; Object b = 126;
//Object c = new Integer(128); Object c = new Integer(256);
//Object d = new Integer(128); Object d = new Integer(256);
Object e = 111.1f; Object e = 111.1f;
Assert.assertTrue(AssistKit.equals(a, b)); Assert.assertTrue(AssistKit.equals(a, b));
Assert.assertTrue(AssistKit.equals(null, null)); Assert.assertTrue(AssistKit.equals(null, null));
Assert.assertFalse(AssistKit.equals(null, a)); Assert.assertFalse(AssistKit.equals(null, a));
//c 和 d应该不是同一个对象啊?为什么返回True?
//Assert.assertTrue(AssistKit.equals(c, d));
Assert.assertFalse(AssistKit.equals(a,e)); Assert.assertFalse(AssistKit.equals(a,e));
} }
@ -68,12 +64,5 @@ public class AssistKitTest {
Object[] a = new Object[]{s}; Object[] a = new Object[]{s};
Assert.assertEquals(Arrays.hashCode(a), AssistKit.hashCode(s)); Assert.assertEquals(Arrays.hashCode(a), AssistKit.hashCode(s));
Assert.assertEquals(0, AssistKit.hashCode(null)); Assert.assertEquals(0, AssistKit.hashCode(null));
} }
// 暂时还没有用到,先不写单元测试
// @Test
// public void toString1() {
//
// }
} }
Loading…
Cancel
Save