From 2176aac9badbc6b433b2c9ded0c3c8ffe66b35c5 Mon Sep 17 00:00:00 2001 From: Dung Ta Van Date: Mon, 18 Jul 2022 22:13:20 +0700 Subject: [PATCH] update unit test --- .../java/com/tvd12/ezyfox/testing/entity/EzyArray1Test.java | 3 ++- .../com/tvd12/ezyfox/testing/entity/EzyArrayListTest.java | 4 ++-- .../java/com/tvd12/ezyfox/testing/entity/EzyObject1Test.java | 3 --- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/ezyfox-common/src/test/java/com/tvd12/ezyfox/testing/entity/EzyArray1Test.java b/ezyfox-common/src/test/java/com/tvd12/ezyfox/testing/entity/EzyArray1Test.java index 0e1a80b2..ed8f1736 100644 --- a/ezyfox-common/src/test/java/com/tvd12/ezyfox/testing/entity/EzyArray1Test.java +++ b/ezyfox-common/src/test/java/com/tvd12/ezyfox/testing/entity/EzyArray1Test.java @@ -7,6 +7,7 @@ import com.tvd12.ezyfox.entity.EzyArrayList; import com.tvd12.ezyfox.factory.EzyEntityFactory; import com.tvd12.ezyfox.io.EzyDates; +import com.tvd12.test.assertion.Asserts; import org.testng.annotations.Test; import java.util.Arrays; @@ -127,7 +128,7 @@ public void test1() { assertEquals(array.toList(String.class).size(), 2); assertEquals(array.toArray(String.class), new String[]{"a", "c"}); EzyArray dup = array.duplicate(); - assertNotSame(array, dup); + Asserts.assertEquals(array, dup); assertTrue(dup.toList().containsAll(Sets.newHashSet("a", "c"))); EzyArray sub = array.sub(0, 1); assertEquals(sub.size(), 1); diff --git a/ezyfox-common/src/test/java/com/tvd12/ezyfox/testing/entity/EzyArrayListTest.java b/ezyfox-common/src/test/java/com/tvd12/ezyfox/testing/entity/EzyArrayListTest.java index 15c4ea40..de6b476d 100644 --- a/ezyfox-common/src/test/java/com/tvd12/ezyfox/testing/entity/EzyArrayListTest.java +++ b/ezyfox-common/src/test/java/com/tvd12/ezyfox/testing/entity/EzyArrayListTest.java @@ -54,7 +54,8 @@ public static class EzyEzyArrayList extends EzyArrayList { public EzyEzyArrayList( EzyInputTransformer inputTransformer, EzyOutputTransformer outputTransformer, - EzyCollectionConverter collectionConverter) { + EzyCollectionConverter collectionConverter + ) { super(inputTransformer, outputTransformer, collectionConverter); } @@ -62,6 +63,5 @@ public EzyEzyArrayList( public void add(Object item) { list.add(item); } - } } diff --git a/ezyfox-common/src/test/java/com/tvd12/ezyfox/testing/entity/EzyObject1Test.java b/ezyfox-common/src/test/java/com/tvd12/ezyfox/testing/entity/EzyObject1Test.java index 6023f989..4af8597b 100644 --- a/ezyfox-common/src/test/java/com/tvd12/ezyfox/testing/entity/EzyObject1Test.java +++ b/ezyfox-common/src/test/java/com/tvd12/ezyfox/testing/entity/EzyObject1Test.java @@ -20,9 +20,6 @@ public class EzyObject1Test extends EzyEntityTest { - @Test - public void test() {} - @Test public void test1() { Map map = new HashMap<>();