Examples of targetValueType()


Examples of info.archinnov.achilles.internal.metadata.codec.MapCodec.targetValueType()

        //Then
        assertThat(codec.sourceKeyType()).isSameAs(Long.class);
        assertThat(codec.targetKeyType()).isSameAs(String.class);

        assertThat(codec.sourceValueType()).isSameAs(NamingStrategy.class);
        assertThat(codec.targetValueType()).isSameAs(String.class);
    }

    @Test
    public void should_determine_cql3_simple_type() throws Exception {
        //Given
View Full Code Here

Examples of info.archinnov.achilles.internal.metadata.codec.MapCodec.targetValueType()

    @Test
    public void should_determine_cql3_map_value_type() throws Exception {
        //Given
        MapCodec mapCodec = mock(MapCodec.class);
        when(mapCodec.sourceValueType()).thenReturn(Integer.class);
        when(mapCodec.targetValueType()).thenReturn(String.class);

        //When
        final Class<?> actualClass = factory.determineCQL3ValueType(mapCodec, false);

        //Then
View Full Code Here

Examples of info.archinnov.achilles.internal.metadata.codec.MapCodec.targetValueType()

        //Then
        assertThat(actual.sourceKeyType()).isSameAs(Long.class);
        assertThat(actual.targetKeyType()).isSameAs(String.class);

        assertThat(actual.sourceValueType()).isSameAs(NamingStrategy.class);
        assertThat(actual.targetValueType()).isSameAs(String.class);
    }

    @Test
    public void should_parse_map_key_type_transformer() throws Exception {
        //Given
View Full Code Here

Examples of info.archinnov.achilles.internal.metadata.codec.MapCodec.targetValueType()

        //Then
        assertThat(actual.sourceKeyType()).isSameAs(Long.class);
        assertThat(actual.targetKeyType()).isSameAs(String.class);

        assertThat(actual.sourceValueType()).isSameAs(String.class);
        assertThat(actual.targetValueType()).isSameAs(String.class);
    }

    @Test
    public void should_parse_map_value_type_transformer() throws Exception {
        //Given
View Full Code Here

Examples of info.archinnov.achilles.internal.metadata.codec.MapCodec.targetValueType()

        //Then
        assertThat(actual.sourceKeyType()).isSameAs(Long.class);
        assertThat(actual.targetKeyType()).isSameAs(Long.class);

        assertThat(actual.sourceValueType()).isSameAs(NamingStrategy.class);
        assertThat(actual.targetValueType()).isSameAs(String.class);
    }

    public static class LongToStringCodec implements Codec<Long, String> {

        @Override
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.