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);
}
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);
}
Aggregations