use of org.firebirdsql.gds.ng.wire.AbstractWireOperations in project jaybird by FirebirdSQL.
the class TestV10WireOperations method testProcessResponse_warning.
/**
* Test if processResponse does not throw an exception if the response
* contains an exception that is warning.
*/
@Test
public void testProcessResponse_warning() throws Exception {
AbstractWireOperations wire = createDummyWireOperations();
SQLException exception = new FbExceptionBuilder().warning(ISCConstants.isc_numeric_out_of_range).toSQLException();
GenericResponse genericResponse = new GenericResponse(-1, -1, null, exception);
wire.processResponse(genericResponse);
}
Aggregations