Search in sources :

Example 1 with BigIntColumn

use of com.scalar.db.io.BigIntColumn in project scalardb by scalar-labs.

the class ValueBinderTest method visit_BigIntColumnAcceptCalled_ShouldCallSetLong.

@Test
public void visit_BigIntColumnAcceptCalled_ShouldCallSetLong() {
    // Arrange
    BigIntColumn column = BigIntColumn.of(ANY_NAME, ANY_LONG);
    ValueBinder binder = new ValueBinder(bound);
    // Act
    column.accept(binder);
    // Assert
    verify(bound).setLong(0, ANY_LONG);
}
Also used : BigIntColumn(com.scalar.db.io.BigIntColumn) Test(org.junit.jupiter.api.Test)

Example 2 with BigIntColumn

use of com.scalar.db.io.BigIntColumn in project scalardb by scalar-labs.

the class ValueBinderTest method visit_BigIntColumnWithNullValueAcceptCalled_ShouldCallSetToNull.

@Test
public void visit_BigIntColumnWithNullValueAcceptCalled_ShouldCallSetToNull() {
    // Arrange
    BigIntColumn column = BigIntColumn.ofNull(ANY_NAME);
    ValueBinder binder = new ValueBinder(bound);
    // Act
    column.accept(binder);
    // Assert
    verify(bound).setToNull(0);
}
Also used : BigIntColumn(com.scalar.db.io.BigIntColumn) Test(org.junit.jupiter.api.Test)

Aggregations

BigIntColumn (com.scalar.db.io.BigIntColumn)2 Test (org.junit.jupiter.api.Test)2