Examples of TestAnnotation1Impl


Examples of org.jboss.test.metadata.shared.support.TestAnnotation1Impl

      loader.addComponentMetaDataRetrieval(new MethodSignature("empty"), component);
      component = new MemoryMetaDataLoader();
      component.addAnnotation(new TestAnnotationImpl());
      loader.addComponentMetaDataRetrieval(new MethodSignature("testAnnotation", String.class), component);
      component = new MemoryMetaDataLoader();
      component.addAnnotation(new TestAnnotation1Impl());
      component.addAnnotation(new TestAnnotation2Impl());
      loader.addComponentMetaDataRetrieval(new MethodSignature("testAnnotation12", String.class, Class.class), component);
      return new MetaDataRetrievalToMetaDataBridge(loader);
   }
View Full Code Here

Examples of org.jboss.test.metadata.shared.support.TestAnnotation1Impl

      loader.addComponentMetaDataRetrieval(new MethodParametersSignature("empty", 0, String.class), component);
      component = new MemoryMetaDataLoader();
      component.addAnnotation(new TestAnnotationImpl());
      loader.addComponentMetaDataRetrieval(new MethodParametersSignature("testAnnotation", 0, String.class), component);
      component = new MemoryMetaDataLoader();
      component.addAnnotation(new TestAnnotation1Impl());
      component.addAnnotation(new TestAnnotation2Impl());
      loader.addComponentMetaDataRetrieval(new MethodParametersSignature("testAnnotation12", 1, String.class, Class.class), component);
      return new MetaDataRetrievalToMetaDataBridge(loader);
   }
View Full Code Here

Examples of org.jboss.test.metadata.shared.support.TestAnnotation1Impl

      loader.addComponentMetaDataRetrieval(new ConstructorParametersSignature(0, String.class), component);
      component = new MemoryMetaDataLoader();
      component.addAnnotation(new TestAnnotationImpl());
      loader.addComponentMetaDataRetrieval(new ConstructorParametersSignature(0, Integer.class), component);
      component = new MemoryMetaDataLoader();
      component.addAnnotation(new TestAnnotation1Impl());
      component.addAnnotation(new TestAnnotation2Impl());
      loader.addComponentMetaDataRetrieval(new ConstructorParametersSignature(1, String.class, Class.class), component);
      return new MetaDataRetrievalToMetaDataBridge(loader);
   }
View Full Code Here

Examples of org.jboss.test.metadata.shared.support.TestAnnotation1Impl

      assertEquals("retrieveMetaData(String)", test.lastMethod);
   }

   public void testAnnotationsToMetaDatasBridge() throws Exception
   {
      TestAnnotation1Impl annotation1 = new TestAnnotation1Impl();
      TestAnnotation2Impl annotation2 = new TestAnnotation2Impl();
     
      SimpleAnnotationItem<TestAnnotation1> item1 = new SimpleAnnotationItem<TestAnnotation1>(annotation1);
      SimpleAnnotationItem<TestAnnotation2> item2 = new SimpleAnnotationItem<TestAnnotation2>(annotation2);
View Full Code Here

Examples of org.jboss.test.metadata.shared.support.TestAnnotation1Impl

   }

   protected MetaData setupTestAnnotation12()
   {
      MutableMetaDataLoader loader = createTestMutableMetaDataLoader();
      loader.addAnnotation(new TestAnnotation1Impl());
      loader.addAnnotation(new TestAnnotation2Impl());
      return setupMetaData(loader);
   }
View Full Code Here

Examples of org.jboss.test.metadata.shared.support.TestAnnotation1Impl

   }

   protected MetaData setupTestAnnotation12()
   {
      MutableMetaDataLoader loader = createTestMutableMetaDataLoader();
      loader.addAnnotation(new TestAnnotation1Impl());
      loader.addAnnotation(new TestAnnotation2Impl());
      return setupMetaData(loader);
   }
View Full Code Here

Examples of org.jboss.test.metadata.shared.support.TestAnnotation1Impl

      return new MetaDataRetrievalToMetaDataBridge(loader);
   }

   protected MetaData setupTestAnnotation12()
   {
      TestAnnotationMetaDataLoader loader = new TestAnnotationMetaDataLoader(new TestAnnotation1Impl(), new TestAnnotation2Impl());
      return new MetaDataRetrievalToMetaDataBridge(loader);
   }
View Full Code Here

Examples of org.jboss.test.metadata.shared.support.TestAnnotation1Impl

   }

   protected MetaData setupTestAnnotation12()
   {
      MutableMetaDataLoader loader = createTestMutableMetaDataLoader();
      loader.addAnnotation(new TestAnnotation1Impl());
      loader.addAnnotation(new TestAnnotation2Impl());
      return setupMetaData(loader);
   }
View Full Code Here

Examples of org.jboss.test.metadata.shared.support.TestAnnotation1Impl

      assertTrue(item.getAnnotations().length == 0);
      assertTrue(item.getValue().length == 0);
      assertTrue(item.isCachable());
      assertTrue(item.isValid());
     
      TestAnnotation1Impl annotation1 = new TestAnnotation1Impl();
      parentLoader.addAnnotation(annotation1);
      AnnotationItem<? extends Annotation> annotationItem1Parent = parentLoader.retrieveAnnotation(TestAnnotation1.class);

      @SuppressWarnings("unchecked")
      AnnotationItem[] expectedItems = { annotationItem1Parent };
      assertUnorderedArrayEquals(expectedItems, item.getAnnotations());
      Annotation[] expected = { annotation1 };
      assertUnorderedArrayEquals(expected, item.getValue());
     
      TestAnnotation2Impl annotation2 = new TestAnnotation2Impl();
      childLoader.addAnnotation(annotation2);
      AnnotationItem<? extends Annotation> annotationItem2Child = childLoader.retrieveAnnotation(TestAnnotation2.class);

      expectedItems = new AnnotationItem[] { annotationItem1Parent, annotationItem2Child };
      assertUnorderedArrayEquals(expectedItems, item.getAnnotations());
      expected = new Annotation[] { annotation1, annotation2 };
      assertUnorderedArrayEquals(expected, item.getValue());
     
      TestAnnotation1Impl annotation1Child = new TestAnnotation1Impl();
      childLoader.addAnnotation(annotation1Child);
      AnnotationItem<? extends Annotation> annotationItem1Child = childLoader.retrieveAnnotation(TestAnnotation1.class);

      expectedItems = new AnnotationItem[] { annotationItem1Child, annotationItem2Child };
      assertUnorderedArrayEquals(expectedItems, item.getAnnotations());
View Full Code Here

Examples of org.jboss.test.metadata.shared.support.TestAnnotation1Impl

      assertTrue(item.isValid());
   }

   public void testSimpleAnnotations() throws Exception
   {
      TestAnnotation1Impl annotation1 = new TestAnnotation1Impl();
      TestAnnotation2Impl annotation2 = new TestAnnotation2Impl();
     
      SimpleAnnotationItem<TestAnnotation1> item1 = new SimpleAnnotationItem<TestAnnotation1>(annotation1);
      SimpleAnnotationItem<TestAnnotation2> item2 = new SimpleAnnotationItem<TestAnnotation2>(annotation2);
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.