Examples of ExperimentalAnnotated


Examples of org.jboss.weld.experimental.ExperimentalAnnotated

        return ShrinkWrap.create(BeanArchive.class).addPackage(RepeatableAnnotationTest.class.getPackage());
    }

    @Test
    public void testGetAnnotationsByType(BeanManager manager) {
        ExperimentalAnnotated type = (ExperimentalAnnotated) manager.createAnnotatedType(DummyClass.class);
        assertArrayEquals(DummyClass.class.getAnnotationsByType(RepeatableAnnotation.class), type.getAnnotationsByType(RepeatableAnnotation.class).toArray());
        assertArrayEquals(DummyClass.class.getAnnotationsByType(RepeatableAnnotation.Container.class), type.getAnnotationsByType(RepeatableAnnotation.Container.class).toArray());
        assertArrayEquals(DummyClass.class.getAnnotationsByType(Named.class), type.getAnnotationsByType(Named.class).toArray());
        assertArrayEquals(DummyClass.class.getAnnotationsByType(Default.class), type.getAnnotationsByType(Default.class).toArray());
    }
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.