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

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


   public void testRemoveDoesNotExist() throws Exception
   {
      MetaDataAndMutableMetaData metaData = setupEmpty();
      long last = metaData.getValidTime();
      ExpectedAnnotations expectedAnnotations = emptyExpectedAnnotations();

      assertNotRemovedAnnotation(metaData, TestAnnotation.class, last);
      assertAllAnnotations(metaData, expectedAnnotations);
   }
View Full Code Here


  
   public void testRemoveTwice() throws Exception
   {
      MetaDataAndMutableMetaData metaData = setupEmpty();
      long last = metaData.getValidTime();
      ExpectedAnnotations expectedAnnotations = emptyExpectedAnnotations();

      last = assertAddAnnotationNoPrevious(metaData, new TestAnnotationImpl(), expectedAnnotations, last);
      assertRemoveAnnotation(metaData, TestAnnotation.class, expectedAnnotations, last);
      assertNotRemovedAnnotation(metaData, TestAnnotation.class, last);
      assertAllAnnotations(metaData, expectedAnnotations);
View Full Code Here

  
   public void testEmpty() throws Exception
   {
      MutableMetaDataLoader metaData = setupEmpty();
      long last = metaData.getValidTime().getValidTime();
      ExpectedAnnotations expectedAnnotations = emptyExpectedAnnotations();
     
      assertNoAnnotation(metaData, NotPresentAnnotation.class);
      assertAllAnnotations(metaData, expectedAnnotations);

      assertValidTimeUnchanged(metaData, last);
View Full Code Here

  
   public void testTestAnnotation() throws Exception
   {
      MutableMetaDataLoader metaData = setupEmpty();
      long last = metaData.getValidTime().getValidTime();
      ExpectedAnnotations expectedAnnotations = emptyExpectedAnnotations();
     
      assertNoAnnotation(metaData, TestAnnotation.class);
      assertNoAnnotation(metaData, NotPresentAnnotation.class);
      assertAllAnnotations(metaData, expectedAnnotations);
     
View Full Code Here

  
   public void testTestAnnotation12() throws Exception
   {
      MutableMetaDataLoader metaData = setupEmpty();
      long last = metaData.getValidTime().getValidTime();
      ExpectedAnnotations expectedAnnotations = emptyExpectedAnnotations();
     
      assertNoAnnotation(metaData, TestAnnotation1.class);
      assertNoAnnotation(metaData, TestAnnotation2.class);
      assertNoAnnotation(metaData, NotPresentAnnotation.class);
      assertAllAnnotations(metaData, expectedAnnotations);
View Full Code Here

  
   public void testAddTwice() throws Exception
   {
      MutableMetaDataLoader metaData = setupEmpty();
      long last = metaData.getValidTime().getValidTime();
      ExpectedAnnotations expectedAnnotations = emptyExpectedAnnotations();
     
      assertNoAnnotation(metaData, TestAnnotation.class);
      assertNoAnnotation(metaData, NotPresentAnnotation.class);
      assertAllAnnotations(metaData, expectedAnnotations);
     
View Full Code Here

  
   public void testAddTwiceSameObject() throws Exception
   {
      MutableMetaDataLoader metaData = setupEmpty();
      long last = metaData.getValidTime().getValidTime();
      ExpectedAnnotations expectedAnnotations = emptyExpectedAnnotations();
     
      assertNoAnnotation(metaData, TestAnnotation.class);
      assertNoAnnotation(metaData, NotPresentAnnotation.class);
      assertAllAnnotations(metaData, expectedAnnotations);
     
View Full Code Here

   public void testRemoveDoesNotExist() throws Exception
   {
      MutableMetaDataLoader metaData = setupEmpty();
      long last = metaData.getValidTime().getValidTime();
      ExpectedAnnotations expectedAnnotations = emptyExpectedAnnotations();

      assertNotRemovedAnnotation(metaData, TestAnnotation.class, last);
      assertAllAnnotations(metaData, expectedAnnotations);
   }
View Full Code Here

  
   public void testRemoveTwice() throws Exception
   {
      MutableMetaDataLoader metaData = setupEmpty();
      long last = metaData.getValidTime().getValidTime();
      ExpectedAnnotations expectedAnnotations = emptyExpectedAnnotations();

      last = assertAddAnnotationNoPrevious(metaData, new TestAnnotationImpl(), expectedAnnotations, last);
      assertRemoveAnnotation(metaData, TestAnnotation.class, expectedAnnotations, last);
      assertNotRemovedAnnotation(metaData, TestAnnotation.class, last);
      assertAllAnnotations(metaData, expectedAnnotations);
View Full Code Here

      super(name);
   }
  
   protected void testAnnotation(MetaData metaData, MutableMetaDataLoader loader, boolean local) throws Exception
   {
      ExpectedAnnotations expected = emptyExpectedAnnotations();
      long last = metaData.getValidTime();
      assertNoAnnotation(metaData, TestAnnotation.class);

      TestAnnotation annotation = new TestAnnotationImpl();
      last = assertAddAnnotationNoPrevious(metaData, loader, annotation, expected, last);
View Full Code Here

TOP

Related Classes of org.jboss.test.metadata.shared.support.ExpectedAnnotations

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.