Examples of sourceKeyType()


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

        Field field = Test.class.getDeclaredField("map");
        //When
        final MapCodec codec = factory.parseMapField(createContext(field));

        //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);
    }
View Full Code Here

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

    @Test
    public void should_determine_cql3_map_key_type() throws Exception {
        //Given
        MapCodec mapCodec = mock(MapCodec.class);
        when(mapCodec.sourceKeyType()).thenReturn(Integer.class);
        when(mapCodec.targetKeyType()).thenReturn(String.class);

        //When
        final Class<?> actualClass = factory.determineCQL3KeyType(mapCodec, false);
View Full Code Here

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

        //When
        final MapCodec actual = parser.parseAndValidateMapCodec(Test.class.getDeclaredField("map"));

        //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);
    }
View Full Code Here

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

        //When
        final MapCodec actual = parser.parseAndValidateMapCodec(Test.class.getDeclaredField("map"));

        //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);
    }
View Full Code Here

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

        //When
        final MapCodec actual = parser.parseAndValidateMapCodec(Test.class.getDeclaredField("map"));

        //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);
    }
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.