Package org.jboss.arquillian.persistence.event

Examples of org.jboss.arquillian.persistence.event.PrepareData


      }
   }

   public void initializeDataSeeding(@Observes(precedence = 1000) EventContext<PrepareData> context)
   {
      PrepareData prepareDataEvent = context.getEvent();
      createInitialDataSets(prepareDataEvent.getDescriptors());
      context.proceed();
   }
View Full Code Here


      {
         context.proceed();
         return;
      }

      PrepareData event = context.getEvent();
      dumpDatabaseState(event, Phase.BEFORE_SEED);
      context.proceed();
      dumpDatabaseState(event, Phase.AFTER_SEED);
   }
View Full Code Here

      PersistenceExtensionFeatureResolver persistenceExtensionFeatureResolver = persistenceExtensionFeatureResolverInstance.get();

      if (persistenceExtensionFeatureResolver.shouldSeedData())
      {
         DataSetProvider dataSetProvider = new DataSetProvider(metadataExtractorInstance.get(), configurationInstance.get());
         prepareDataEvent.fire(new PrepareData(beforePersistenceTest, dataSetProvider.getDescriptorsDefinedFor(beforePersistenceTest.getTestMethod())));
      }

   }
View Full Code Here

TOP

Related Classes of org.jboss.arquillian.persistence.event.PrepareData

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.