use of org.firebirdsql.jdbc.FBRowId in project jaybird by FirebirdSQL.
the class TestFBRowIdField method setRowIdNonNull.
@Test
@Override
public void setRowIdNonNull() throws SQLException {
final byte[] bytes = getRandomBytes();
final RowId rowId = new FBRowId(bytes);
setValueExpectations(bytes);
field.setRowId(rowId);
}
use of org.firebirdsql.jdbc.FBRowId in project jaybird by FirebirdSQL.
the class TestFBRowIdField method getObject_FBRowId.
@Test
@Override
public void getObject_FBRowId() throws SQLException {
final byte[] bytes = getRandomBytes();
toReturnValueExpectations(bytes);
FBRowId rowId = field.getObject(FBRowId.class);
assertArrayEquals(bytes, rowId.getBytes());
}
use of org.firebirdsql.jdbc.FBRowId in project jaybird by FirebirdSQL.
the class TestFBBinaryField 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);
}
use of org.firebirdsql.jdbc.FBRowId in project jaybird by FirebirdSQL.
the class TestFBBinaryField method getObject_FBRowId.
@Test
@Override
public void getObject_FBRowId() throws SQLException {
final byte[] bytes = getRandomBytes();
toReturnValueExpectations(bytes);
FBRowId rowId = field.getObject(FBRowId.class);
assertArrayEquals(bytes, rowId.getBytes());
}
use of org.firebirdsql.jdbc.FBRowId in project jaybird by FirebirdSQL.
the class TestFBBinaryField method setRowIdNonNull.
@Test
@Override
public void setRowIdNonNull() throws SQLException {
final byte[] bytes = getRandomBytes();
final RowId rowId = new FBRowId(bytes);
setValueExpectations(bytes);
field.setRowId(rowId);
}