Skip to content

Commit

Permalink
(#29) Removed test that makes no sense
Browse files Browse the repository at this point in the history
  • Loading branch information
svettwer committed Sep 5, 2019
1 parent 1eae951 commit e9f933f
Showing 1 changed file with 1 addition and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -999,7 +999,7 @@ public void testParametersMixedParametersAreOrderedCorrectly() throws SQLExcepti
callableStatement.registerOutParameter(2, Types.VARCHAR);
callableStatement.registerOutParameter(parameterName, Types.VARCHAR);

final String expectedStatement = "CALL myFunction(:foo,?) - (foobar, bar)";
final String expectedStatement = "CALL myFunction(:foo,?) - (foobar,bar)";

//WHEN
callableStatement.setParameter(2, "bar");
Expand All @@ -1009,25 +1009,6 @@ public void testParametersMixedParametersAreOrderedCorrectly() throws SQLExcepti
assertEquals(callableStatement.composeStatement(), expectedStatement);
}

@Test
public void testAnonymousNamedParametersAreOrderedCorrectly() {

//GIVEN
final String parameter1 = "z-param";
final String parameter2 = "a-param";
final JdbcCallableStatement callableStatement = generateCallableStatement();
callableStatement.registerOutParameter(parameter1, Types.VARCHAR);
callableStatement.registerOutParameter(parameter2, Types.VARCHAR);
final String expectedStatement = "CALL myFunction(?,?) - (foo,bar)";

//WHEN
callableStatement.setString(parameter1,"foo");
callableStatement.setString(parameter2, "bar");

//THEN
assertEquals(callableStatement.composeStatement(), expectedStatement);
}

@Test
public void testToString(){
ToStringVerifier
Expand Down

0 comments on commit e9f933f

Please sign in to comment.