Package org.jboss.arquillian.persistence.core.metadata

Examples of org.jboss.arquillian.persistence.core.metadata.MetadataExtractor


   public static  SqlScriptProvider<ApplyScriptBefore> createProviderForScriptsToBeAppliedBeforeTest(TestClass testClass, ScriptingConfiguration configuration)
   {
      return SqlScriptProvider.forAnnotation(ApplyScriptBefore.class)
                              .usingConfiguration(configuration)
                              .extractingMetadataUsing(new MetadataExtractor(testClass))
                              .namingFollows(new PrefixedScriptFileNamingStrategy("before-", "sql"))
                              .build(new ValueExtractor<ApplyScriptBefore>()
                              {
                                 @Override
                                 public String[] extract(ApplyScriptBefore toExtract)
View Full Code Here


   public static  SqlScriptProvider<CreateSchema> createProviderForCreateSchemaScripts(TestClass testClass, ScriptingConfiguration configuration)
   {
      return SqlScriptProvider.forAnnotation(CreateSchema.class)
            .usingConfiguration(configuration)
            .extractingMetadataUsing(new MetadataExtractor(testClass))
            .namingFollows(new FileNamingStrategy<String>("sql"){
               @Override
               public String getFileExtension()
               {
                  return extension;
View Full Code Here

   @Inject
   private Instance<ServiceLoader> serviceLoaderInstance;

   public void beforeClass(@Observes BeforeClass beforeClass)
   {
      metadataExtractorProducer.set(new MetadataExtractor(beforeClass.getTestClass()));
      persistenceExtensionEnabler.set(new PersistenceExtensionEnabler(metadataExtractorProducer.get()));

      if (persistenceExtensionEnabler.get().shouldPersistenceExtensionBeActivated())
      {
         initializeConfigurationEvent.fire(new InitializeConfiguration());
View Full Code Here

TOP

Related Classes of org.jboss.arquillian.persistence.core.metadata.MetadataExtractor

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.