assertEquals("Mismatched 2nd parameter", "b", params.get(1));
}
@Test
public void testSetParameterOutOfSequence() {
Operation operation = getTestOperation("testSetParameterOutOfSequence");
JdbcOperationFinalizer.addParam(operation, 2, "b"); // this is 1-based index
JdbcOperationFinalizer.addParam(operation, 1, "a"); // this is 1-based index
JdbcOperationFinalizer.finalize(operation);
OperationList params = operation.get(JdbcOperationFinalizer.PARAMS_VALUES, OperationList.class);
assertNotNull("Missing parameters list", params);
assertEquals("Mismatched number of parameters", 2, params.size());
assertEquals("Mismatched 1st parameter", "a", params.get(0));
assertEquals("Mismatched 2nd parameter", "b", params.get(1));
}