Examples of sourceType()


Examples of info.archinnov.achilles.internal.metadata.codec.SetCodec.sourceType()

        Field field = Test.class.getDeclaredField("counts");
        //When
        final SetCodec codec = factory.parseSetField(createContext(field));

        //Then
        assertThat(codec.sourceType()).isSameAs(Long.class);
        assertThat(codec.targetType()).isSameAs(String.class);
    }

    @Test
    public void should_create_map_codec() throws Exception {
View Full Code Here

Examples of info.archinnov.achilles.internal.metadata.codec.SetCodec.sourceType()

    @Test
    public void should_determine_cql3_set_type() throws Exception {
        //Given
        SetCodec setCodec = mock(SetCodec.class);
        when(setCodec.sourceType()).thenReturn(Integer.class);
        when(setCodec.targetType()).thenReturn(String.class);

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

Examples of info.archinnov.achilles.internal.metadata.codec.SetCodec.sourceType()

        //When
        final SetCodec actual = parser.parseAndValidateSetCodec(Test.class.getDeclaredField("longToString"));

        //Then
        assertThat(actual.sourceType()).isSameAs(Long.class);
        assertThat(actual.targetType()).isSameAs(String.class);
    }

    @Test
    public void should_exception_when_source_type_not_match_for_set_codec() throws Exception {
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.