Skip to content

Commit 8658764

Browse files
committed
Fix wrong mock
1 parent be0aed3 commit 8658764

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/java/org/apache/ibatis/type/CharacterTypeHandlerTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public void shouldGetResultFromResultSetByPosition() throws Exception {
6767
@Test
6868
public void shouldGetResultNullFromResultSetByPosition() throws Exception {
6969
when(rs.getString(1)).thenReturn(null);
70-
when(rs.wasNull()).thenReturn(false);
70+
when(rs.wasNull()).thenReturn(true);
7171
assertNull(TYPE_HANDLER.getResult(rs, 1));
7272
}
7373

0 commit comments

Comments
 (0)