Search in sources :

Example 1 with FloatColumn

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);
}
Also used : FloatColumn(com.scalar.db.io.FloatColumn) Test(org.junit.jupiter.api.Test)

Example 2 with FloatColumn

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);
}
Also used : FloatColumn(com.scalar.db.io.FloatColumn) Test(org.junit.jupiter.api.Test)

Aggregations

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