Search in sources :

Example 6 with FBRowId

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);
}
Also used : RowId(java.sql.RowId) FBRowId(org.firebirdsql.jdbc.FBRowId) FBRowId(org.firebirdsql.jdbc.FBRowId) Test(org.junit.Test)

Example 7 with FBRowId

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());
}
Also used : FBRowId(org.firebirdsql.jdbc.FBRowId) Test(org.junit.Test)

Example 8 with FBRowId

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);
}
Also used : RowId(java.sql.RowId) FBRowId(org.firebirdsql.jdbc.FBRowId) FBRowId(org.firebirdsql.jdbc.FBRowId) Test(org.junit.Test)

Example 9 with FBRowId

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());
}
Also used : FBRowId(org.firebirdsql.jdbc.FBRowId) Test(org.junit.Test)

Example 10 with FBRowId

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);
}
Also used : RowId(java.sql.RowId) FBRowId(org.firebirdsql.jdbc.FBRowId) FBRowId(org.firebirdsql.jdbc.FBRowId) Test(org.junit.Test)

Aggregations

FBRowId (org.firebirdsql.jdbc.FBRowId)11 Test (org.junit.Test)11 RowId (java.sql.RowId)4