Skip to content

Commit

Permalink
update unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
tvd12 committed Jul 18, 2022
1 parent c8bbc97 commit 2176aac
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,14 @@ public static class EzyEzyArrayList extends EzyArrayList {
public EzyEzyArrayList(
EzyInputTransformer inputTransformer,
EzyOutputTransformer outputTransformer,
EzyCollectionConverter collectionConverter) {
EzyCollectionConverter collectionConverter
) {
super(inputTransformer, outputTransformer, collectionConverter);
}

@Override
public void add(Object item) {
list.add(item);
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@

public class EzyObject1Test extends EzyEntityTest {

@Test
public void test() {}

@Test
public void test1() {
Map<String, Object> map = new HashMap<>();
Expand Down

0 comments on commit 2176aac

Please sign in to comment.