Search in sources :

Example 1 with DefaultTupleValue

use of com.datastax.oss.driver.internal.core.data.DefaultTupleValue in project java-driver by datastax.

the class TupleCodecTest method should_accept_object.

@Test
public void should_accept_object() {
    assertThat(codec.accepts(tupleType.newValue())).isTrue();
    // covariance allowed
    assertThat(codec.accepts(new DefaultTupleValue(tupleType))).isTrue();
    assertThat(codec.accepts("not a tuple")).isFalse();
}
Also used : DefaultTupleValue(com.datastax.oss.driver.internal.core.data.DefaultTupleValue) Test(org.junit.Test)

Aggregations

DefaultTupleValue (com.datastax.oss.driver.internal.core.data.DefaultTupleValue)1 Test (org.junit.Test)1