use of com.datastax.oss.driver.internal.core.data.DefaultUdtValue in project java-driver by datastax.
the class UdtCodecTest method should_accept_object.
@Test
public void should_accept_object() {
assertThat(codec.accepts(userType.newValue())).isTrue();
// covariance allowed
assertThat(codec.accepts(new DefaultUdtValue(userType))).isTrue();
assertThat(codec.accepts("not a udt")).isFalse();
}
Aggregations