From 1385d356553e312e6320a03ec2a59cde82f8124c Mon Sep 17 00:00:00 2001 From: "Mars.Ma" Date: Mon, 26 Aug 2019 19:09:55 +0800 Subject: [PATCH] =?UTF-8?q?KERNEL-1118=20=20=E5=88=A0=E9=99=A4=E6=B3=A8?= =?UTF-8?q?=E9=87=8A=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/fanruan/api/util/AssistKitTest.java | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/src/test/java/com/fanruan/api/util/AssistKitTest.java b/src/test/java/com/fanruan/api/util/AssistKitTest.java index f402bda..def10b4 100644 --- a/src/test/java/com/fanruan/api/util/AssistKitTest.java +++ b/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() { -// -// } } \ No newline at end of file