Skip to content

Commit 2aaac21

Browse files
committed
Avoid occasional org.mockito.exceptions.misusing.UnnecessaryStubbingException.
1 parent f31526d commit 2aaac21

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/test/java/org/apache/ibatis/executor/resultset/DefaultResultSetHandlerTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2009-2016 the original author or authors.
2+
* Copyright 2009-2018 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -88,7 +88,6 @@ public void shouldRetainColumnNameCase() throws Exception {
8888
when(rs.getType()).thenReturn(ResultSet.TYPE_FORWARD_ONLY);
8989
when(rs.next()).thenReturn(true).thenReturn(false);
9090
when(rs.getInt("CoLuMn1")).thenReturn(100);
91-
when(rs.wasNull()).thenReturn(false);
9291
when(rsmd.getColumnCount()).thenReturn(1);
9392
when(rsmd.getColumnLabel(1)).thenReturn("CoLuMn1");
9493
when(rsmd.getColumnType(1)).thenReturn(Types.INTEGER);

0 commit comments

Comments
 (0)