Skip to content

Commit 787b1cb

Browse files
committed
Update to Mockito 2.4.2
fix gh-875
1 parent 45cea61 commit 787b1cb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@
216216
<dependency>
217217
<groupId>org.mockito</groupId>
218218
<artifactId>mockito-core</artifactId>
219-
<version>2.3.7</version>
219+
<version>2.4.2</version>
220220
<scope>test</scope>
221221
</dependency>
222222
<!-- Do not go to 2.x until we are on jdk7 -->

src/test/java/org/apache/ibatis/scripting/defaults/DefaultParameterHandlerTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ public void setParametersThrowsProperException() throws SQLException {
5252
final Object parameterObject = null;
5353
final BoundSql boundSql = mock(BoundSql.class);
5454

55-
TypeHandler<String> typeHandler = mock(TypeHandler.class);
56-
doThrow(new SQLException("foo")).when(typeHandler).setParameter(any(PreparedStatement.class), anyInt(), (String) anyObject(), any(JdbcType.class));
55+
TypeHandler<Object> typeHandler = mock(TypeHandler.class);
56+
doThrow(new SQLException("foo")).when(typeHandler).setParameter(any(PreparedStatement.class), anyInt(), any(), any(JdbcType.class));
5757
ParameterMapping parameterMapping = new ParameterMapping.Builder(mappedStatement.getConfiguration(), "prop", typeHandler).build();
5858
List<ParameterMapping> parameterMappings = Collections.singletonList(parameterMapping);
5959
when(boundSql.getParameterMappings()).thenReturn(parameterMappings);

0 commit comments

Comments
 (0)