Package info.archinnov.achilles.internal.metadata.holder

Examples of info.archinnov.achilles.internal.metadata.holder.PropertyMeta.config()


        }
        PropertyParsingContext context = newContext(Test.class, Test.class.getDeclaredField("type"));
        PropertyMeta meta = parser.parse(context);

        assertThat(meta.<PropertyType>getValueClass()).isEqualTo(PropertyType.class);
        assertThat(meta.config().<String>getCQL3ValueType()).isEqualTo(String.class);
    }

    @Test
    public void should_parse_enum_by_ordinal_property() throws Exception {
        @SuppressWarnings("unused")
View Full Code Here


        }
        PropertyParsingContext context = newContext(Test.class, Test.class.getDeclaredField("type"));
        PropertyMeta meta = parser.parse(context);

        assertThat(meta.<PropertyType>getValueClass()).isEqualTo(PropertyType.class);
        assertThat(meta.config().<Integer>getCQL3ValueType()).isEqualTo(Integer.class);
    }

    @Test
    public void should_parse_enum_list_property() throws Exception {
        @SuppressWarnings("unused")
View Full Code Here

        }
        PropertyParsingContext context = newContext(Test.class, Test.class.getDeclaredField("types"));
        PropertyMeta meta = parser.parse(context);

        assertThat(meta.<PropertyType>getValueClass()).isEqualTo(PropertyType.class);
        assertThat(meta.config().<Integer>getCQL3ValueType()).isEqualTo(Integer.class);
    }

    @Test
    public void should_parse_enum_map_property() throws Exception {
        @SuppressWarnings("unused")
View Full Code Here

        }
        PropertyParsingContext context = newContext(Test.class, Test.class.getDeclaredField("types"));
        PropertyMeta meta = parser.parse(context);

        assertThat(meta.<PropertyType>getValueClass()).isEqualTo(PropertyType.class);
        assertThat(meta.config().<Integer>getCQL3KeyType()).isEqualTo(Integer.class);
        assertThat(meta.config().<String>getCQL3ValueType()).isEqualTo(String.class);
    }


    @Test
View Full Code Here

        PropertyParsingContext context = newContext(Test.class, Test.class.getDeclaredField("types"));
        PropertyMeta meta = parser.parse(context);

        assertThat(meta.<PropertyType>getValueClass()).isEqualTo(PropertyType.class);
        assertThat(meta.config().<Integer>getCQL3KeyType()).isEqualTo(Integer.class);
        assertThat(meta.config().<String>getCQL3ValueType()).isEqualTo(String.class);
    }


    @Test
    public void should_parse_allowed_type_property() 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.