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