Browse Source

Merge branch 'master' of Mars.Ma/finekit into master

pull/11/head
richie 5 years ago committed by Gogs
parent
commit
deb1c55d81
  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() {
Object a = 126;
Object b = 126;
//Object c = new Integer(128);
//Object d = new Integer(128);
Object c = new Integer(256);
Object d = new Integer(256);
Object e = 111.1f;
Assert.assertTrue(AssistKit.equals(a, b));
Assert.assertTrue(AssistKit.equals(null, null));
Assert.assertFalse(AssistKit.equals(null, a));
//c 和 d应该不是同一个对象啊?为什么返回True?
//Assert.assertTrue(AssistKit.equals(c, d));
Assert.assertFalse(AssistKit.equals(a,e));
}
@ -68,12 +64,5 @@ public class AssistKitTest {
Object[] a = new Object[]{s};
Assert.assertEquals(Arrays.hashCode(a), AssistKit.hashCode(s));
Assert.assertEquals(0, AssistKit.hashCode(null));
}
// 暂时还没有用到,先不写单元测试
// @Test
// public void toString1() {
//
// }
}
Loading…
Cancel
Save