@@ -114,7 +114,7 @@ public void testObjectInstantiatorException() throws SQLException, DatabaseConne
114114 when (preparedStatement .executeQuery ()).thenReturn (resultSet );
115115 when (resultSet .getMetaData ()).thenReturn (resultSetMetaData );
116116 when (resultSet .next ()).thenReturn (true , false );
117- when (objectInstantiator .instantiate (anyObject (), anyString ())).thenThrow (testException );
117+ when (objectInstantiator .instantiate (any (), anyString ())).thenThrow (testException );
118118
119119 try {
120120 jdbcConnector .executeQuery (jdbcUrl , userName , password , mockIMetaObject (), sqlQuery , context );
@@ -152,7 +152,7 @@ public void testSomeResults() throws SQLException, DatabaseConnectorException {
152152 when (connectionManager .getConnection (anyString (), anyString (), anyString ())).thenReturn (connection );
153153 when (preparedStatementCreator .create (anyString (), eq (connection ))).thenReturn (preparedStatement );
154154 when (preparedStatement .executeQuery ()).thenReturn (resultSet );
155- when (objectInstantiator .instantiate (anyObject (), anyString ())).thenReturn (resultObject );
155+ when (objectInstantiator .instantiate (any (), anyString ())).thenReturn (resultObject );
156156 when (resultSetMetaData .getColumnName (anyInt ())).thenReturn ("a" , "b" );
157157 when (resultSetMetaData .getColumnCount ()).thenReturn (2 );
158158 when (resultSet .getMetaData ()).thenReturn (resultSetMetaData );
@@ -188,7 +188,7 @@ public void testSomeResultsWithTwoColumns() throws SQLException, DatabaseConnect
188188 when (connectionManager .getConnection (anyString (), anyString (), anyString ())).thenReturn (connection );
189189 when (preparedStatementCreator .create (anyString (), eq (connection ))).thenReturn (preparedStatement );
190190 when (preparedStatement .executeQuery ()).thenReturn (resultSet );
191- when (objectInstantiator .instantiate (anyObject (), anyString ())).thenReturn (resultObject1 , resultObject2 );
191+ when (objectInstantiator .instantiate (any (), anyString ())).thenReturn (resultObject1 , resultObject2 );
192192 when (resultSetMetaData .getColumnCount ()).thenReturn (2 );
193193 when (resultSetMetaData .getColumnName (1 )).thenReturn (columnName1 );
194194 when (resultSetMetaData .getColumnName (2 )).thenReturn (columnName2 );
@@ -217,7 +217,7 @@ public void testResultForBoolean() throws SQLException, DatabaseConnectorExcepti
217217 when (connectionManager .getConnection (anyString (), anyString (), anyString ())).thenReturn (connection );
218218 when (preparedStatementCreator .create (anyString (), eq (connection ))).thenReturn (preparedStatement );
219219 when (preparedStatement .executeQuery ()).thenReturn (resultSet );
220- when (objectInstantiator .instantiate (anyObject (), anyString ())).thenReturn (resultObject );
220+ when (objectInstantiator .instantiate (any (), anyString ())).thenReturn (resultObject );
221221
222222 when (resultSetMetaData .getColumnCount ()).thenReturn (1 );
223223 when (resultSetMetaData .getColumnName (1 )).thenReturn ("Boolean" );
@@ -244,7 +244,7 @@ public void testNoResults() throws Exception {
244244 when (connectionManager .getConnection (anyString (), anyString (), anyString ())).thenReturn (connection );
245245 when (preparedStatementCreator .create (anyString (), eq (connection ))).thenReturn (preparedStatement );
246246 when (preparedStatement .executeQuery ()).thenReturn (resultSet );
247- when (objectInstantiator .instantiate (anyObject (), anyString ())).thenReturn (resultObject );
247+ when (objectInstantiator .instantiate (any (), anyString ())).thenReturn (resultObject );
248248 when (resultSetMetaData .getColumnCount ()).thenReturn (2 );
249249 when (resultSetMetaData .getColumnName (1 )).thenReturn ("a" );
250250 when (resultSetMetaData .getColumnName (2 )).thenReturn ("b" );
0 commit comments