Skip to content

Commit

Permalink
minor fix of unit tests in UtilTest #147
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmoten committed Aug 15, 2022
1 parent 57edad5 commit 6cd6e33
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/test/java/com/github/davidmoten/rx/jdbc/UtilTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import static org.easymock.EasyMock.replay;
import static org.easymock.EasyMock.verify;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNull;

import java.io.ByteArrayInputStream;
import java.io.IOException;
Expand Down Expand Up @@ -360,7 +361,7 @@ public ResultSetMetaData answer(InvocationOnMock invocationOnMock) throws Throwa
}
});

assertEquals(Util.mapObject(resultSet, String.class, 1), "test");
assertEquals("test", Util.mapObject(resultSet, String.class, 1));

}

Expand Down Expand Up @@ -398,7 +399,7 @@ public ResultSetMetaData answer(InvocationOnMock invocationOnMock) throws Throwa
}
});

assertEquals(Util.mapObject(resultSet, String.class, 1), null);
assertNull(Util.mapObject(resultSet, String.class, 1));

}

Expand Down

0 comments on commit 6cd6e33

Please sign in to comment.