use of com.datastax.oss.driver.internal.core.type.codec.IntCodec in project java-driver by datastax.
the class CachingCodecRegistryTest method should_ignore_user_codec_if_collides_with_builtin_codec.
@Test
public void should_ignore_user_codec_if_collides_with_builtin_codec() {
TestCachingCodecRegistry registry = new TestCachingCodecRegistry(mockCache);
IntCodec userIntCodec = new IntCodec();
registry.register(userIntCodec);
assertThat(registry.codecFor(DataTypes.INT, Integer.class)).isNotSameAs(userIntCodec);
}