Skip to content

Commit

Permalink
Adjust tests
Browse files Browse the repository at this point in the history
  • Loading branch information
theigl committed Dec 8, 2024
1 parent 2c45f45 commit 3fffce3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,7 @@ void setSerializer () {

protected void doAssertEquals (Object object1, Object object2) {
if (object1 instanceof Iterable<?> && object2 instanceof Iterable<?>) {
Assertions.assertInstanceOf(object1.getClass(), object2);
Assertions.assertInstanceOf(object2.getClass(), object1);
Assertions.assertEquals(object1.getClass(), object2.getClass());
Assertions.assertIterableEquals((Iterable<?>)object1, (Iterable<?>)object2);
} else {
Assertions.assertEquals(object1, object2);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,7 @@ void testSerializer () {

protected void doAssertEquals (Object object1, Object object2) {
if (object1 instanceof Iterable<?> && object2 instanceof Iterable<?>) {
Assertions.assertInstanceOf(object1.getClass(), object2);
Assertions.assertInstanceOf(object2.getClass(), object1);
Assertions.assertEquals(object1.getClass(), object2.getClass());
Assertions.assertIterableEquals((Iterable<?>)object1, (Iterable<?>)object2);
} else {
Assertions.assertEquals(object1, object2);
Expand Down

0 comments on commit 3fffce3

Please sign in to comment.