Package org.jboss.test.metadata.shared.support

Examples of org.jboss.test.metadata.shared.support.TestAnnotationImpl.annotationType()


      TestAnnotation annotation = new TestAnnotationImpl();
      ComponentMutableMetaData[] array = getArray();
      for(ComponentMutableMetaData cmmd : array)
      {
         assertNull(cmmd.addAnnotation(signature, annotation));
         assertSame(annotation, cmmd.removeAnnotation(member, annotation.annotationType()));
         assertNull(cmmd.addAnnotation(memberInfo, annotation));
         assertSame(annotation, cmmd.removeAnnotation(signature, annotation.annotationType()));
      }
   }
View Full Code Here


      for(ComponentMutableMetaData cmmd : array)
      {
         assertNull(cmmd.addAnnotation(signature, annotation));
         assertSame(annotation, cmmd.removeAnnotation(member, annotation.annotationType()));
         assertNull(cmmd.addAnnotation(memberInfo, annotation));
         assertSame(annotation, cmmd.removeAnnotation(signature, annotation.annotationType()));
      }
   }

   protected void checkMetaDataCycle(Signature signature, Member member, MemberInfo memberInfo) throws Exception
   {
View Full Code Here

   public void testMetaDataToAnnotationBridge() throws Exception
   {
      TestAnnotation annotation = new TestAnnotationImpl();
     
      SimpleMetaDataItem<TestAnnotation> item = new SimpleMetaDataItem<TestAnnotation>(annotation.annotationType().getName(), annotation);
      MetaDataToAnnotationBridge<TestAnnotation> bridge = new MetaDataToAnnotationBridge<TestAnnotation>(item);
     
      assertEquals(annotation, bridge.getAnnotation());
      assertEquals(annotation, bridge.getValue());
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.