Search in sources :

Example 1 with IntCodec

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);
}
Also used : IntCodec(com.datastax.oss.driver.internal.core.type.codec.IntCodec) Test(org.junit.Test)

Aggregations

IntCodec (com.datastax.oss.driver.internal.core.type.codec.IntCodec)1 Test (org.junit.Test)1