diff --git a/driver/src/main/java/com/consol/citrus/db/driver/JdbcCallableStatement.java b/driver/src/main/java/com/consol/citrus/db/driver/JdbcCallableStatement.java index b110584..8de4e01 100644 --- a/driver/src/main/java/com/consol/citrus/db/driver/JdbcCallableStatement.java +++ b/driver/src/main/java/com/consol/citrus/db/driver/JdbcCallableStatement.java @@ -138,7 +138,7 @@ public Timestamp getTimestamp(final int parameterIndex) throws SQLException { @Override public Object getObject(final int parameterIndex) throws SQLException { - return getDataRow().getValue(parameterIndex-1, Object.class); + return getDataRow().getValue(parameterIndex-1); } @Override @@ -398,7 +398,7 @@ public Timestamp getTimestamp(final String parameterName) throws SQLException { @Override public Object getObject(final String parameterName) throws SQLException { - return getDataRow().getValue(parameterName, Object.class); + return getDataRow().getValue(parameterName); } @Override diff --git a/driver/src/test/java/com/consol/citrus/db/driver/JdbcCallableStatementTest.java b/driver/src/test/java/com/consol/citrus/db/driver/JdbcCallableStatementTest.java index 8417fd0..fc9565a 100644 --- a/driver/src/test/java/com/consol/citrus/db/driver/JdbcCallableStatementTest.java +++ b/driver/src/test/java/com/consol/citrus/db/driver/JdbcCallableStatementTest.java @@ -740,7 +740,6 @@ void testGetObjectByName() throws SQLException { //THEN assertEquals(object, expectedObject); - verify(rowSpy).getValue(TEST_VALUE_NAME, Object.class); } @Test @@ -844,7 +843,7 @@ void testGetTimestampByIndex() throws SQLException { } @Test - void testGetObjectStampByIndex() throws SQLException { + void testGetObjectByIndex() throws SQLException { //GIVEN final Object expectedObject = new Timestamp(619912812345L); @@ -855,7 +854,6 @@ void testGetObjectStampByIndex() throws SQLException { //THEN assertEquals(anObject, expectedObject); - verify(rowSpy).getValue(TEST_VALUE_INDEX_INTERNAL, Object.class); } @Test