Package org.apache.deltaspike.data.impl.meta.verifier

Examples of org.apache.deltaspike.data.impl.meta.verifier.EntityVerifier


        return (result != null && !"".equals(result)) ? result : entityClass.getSimpleName();
    }

    public static boolean isEntityClass(Class<?> entityClass)
    {
        return new EntityVerifier().verify(entityClass);
    }
View Full Code Here


    private final Verifier<Class<?>> verifier;

    public AnnotationMetadataExtractor()
    {
        this.verifier = new EntityVerifier();
    }
View Full Code Here

    @Test
    public void should_accept_entity_class()
    {
        // given
        EntityVerifier entityVerifier = new EntityVerifier();

        // when
        boolean isValid = entityVerifier.verify(Simple.class);

        // then
        assertTrue(isValid);
    }
View Full Code Here

    @Test
    public void should_not_accept_class_without_entity_annotation()
    {
        // given
        EntityVerifier entityVerifier = new EntityVerifier();

        // when
        boolean isValid = entityVerifier.verify(EntityWithoutId.class);

        // then
        assertFalse(isValid);

    }
View Full Code Here

TOP

Related Classes of org.apache.deltaspike.data.impl.meta.verifier.EntityVerifier

Copyright © 2018 www.massapicom. 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.