use of com.scalar.db.io.FloatColumn in project scalardb by scalar-labs.
the class ValueBinderTest method visit_FloatColumnWithNullValueAcceptCalled_ShouldCallSetToNull.
@Test
public void visit_FloatColumnWithNullValueAcceptCalled_ShouldCallSetToNull() {
// Arrange
FloatColumn column = FloatColumn.ofNull(ANY_NAME);
ValueBinder binder = new ValueBinder(bound);
// Act
column.accept(binder);
// Assert
verify(bound).setToNull(0);
}
use of com.scalar.db.io.FloatColumn in project scalardb by scalar-labs.
the class ValueBinderTest method visit_FloatColumnAcceptCalled_ShouldCallSetFloat.
@Test
public void visit_FloatColumnAcceptCalled_ShouldCallSetFloat() {
// Arrange
FloatColumn column = FloatColumn.of(ANY_NAME, ANY_FLOAT);
ValueBinder binder = new ValueBinder(bound);
// Act
column.accept(binder);
// Assert
verify(bound).setFloat(0, ANY_FLOAT);
}
Aggregations