use of org.firebirdsql.jdbc.FBRowId in project jaybird by FirebirdSQL.
the class TestFBRowIdField method getObject_FBRowId_null.
@Test
public void getObject_FBRowId_null() throws SQLException {
toReturnNullExpectations();
FBRowId rowId = field.getObject(FBRowId.class);
assertNull(rowId);
}
use of org.firebirdsql.jdbc.FBRowId in project jaybird by FirebirdSQL.
the class TestFBBinaryField method getObject_FBRowId_null.
@Test
public void getObject_FBRowId_null() throws SQLException {
toReturnNullExpectations();
FBRowId rowId = field.getObject(FBRowId.class);
assertNull(rowId);
}
use of org.firebirdsql.jdbc.FBRowId in project jaybird by FirebirdSQL.
the class BaseJUnit4TestFBField method setRowIdNonNull.
@Test
public void setRowIdNonNull() throws SQLException {
expectedException.expect(TypeConversionException.class);
field.setRowId(new FBRowId(new byte[] { 1, 2, 3, 4, 5, 6, 7, 8 }));
}
use of org.firebirdsql.jdbc.FBRowId in project jaybird by FirebirdSQL.
the class TestFBRowIdField method setObjectNonNull.
@Test
public void setObjectNonNull() throws SQLException {
final byte[] bytes = getRandomBytes();
setValueExpectations(bytes);
field.setObject(new FBRowId(bytes));
}
use of org.firebirdsql.jdbc.FBRowId in project jaybird by FirebirdSQL.
the class TestFBRowIdField method setObject_RowId.
@Test
@Override
public void setObject_RowId() throws SQLException {
final byte[] bytes = getRandomBytes();
final RowId rowId = new FBRowId(bytes);
setValueExpectations(bytes);
field.setObject(rowId);
}