use of java.sql.RowId 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 java.sql.RowId in project jaybird by FirebirdSQL.
the class TestFBRowIdField method getObject_RowId_null.
@Test
public void getObject_RowId_null() throws SQLException {
toReturnNullExpectations();
RowId rowId = field.getObject(RowId.class);
assertNull(rowId);
}
use of java.sql.RowId in project jaybird by FirebirdSQL.
the class TestFBBinaryField method getObject_RowId_null.
@Test
public void getObject_RowId_null() throws SQLException {
toReturnNullExpectations();
RowId rowId = field.getObject(RowId.class);
assertNull(rowId);
}
use of java.sql.RowId 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 java.sql.RowId in project jaybird by FirebirdSQL.
the class TestFBBinaryField method getObject_RowId.
@Test
@Override
public void getObject_RowId() throws SQLException {
final byte[] bytes = getRandomBytes();
toReturnValueExpectations(bytes);
RowId rowId = field.getObject(RowId.class);
assertArrayEquals(bytes, rowId.getBytes());
}
Aggregations