Package org.jboss.arquillian.persistence.script.configuration

Examples of org.jboss.arquillian.persistence.script.configuration.ScriptingConfiguration


                       .addAsResource(new ByteArrayAsset(properties.toByteArray()), new DBUnitConfiguration().getPrefix() + "properties");
   }

   private JavaArchive scriptingConfigurationSerializedAsProperties()
   {
      final ScriptingConfiguration scriptingConfigurationPrototype = new ScriptingConfiguration();
      final Map<String, String> extensionProperties = extractExtensionProperties(arquillianDescriptorInstance.get(), scriptingConfigurationPrototype.getQualifier());
      final ByteArrayOutputStream properties = new PropertiesSerializer(scriptingConfigurationPrototype.getPrefix()).serializeToProperties(extensionProperties);
      return ShrinkWrap.create(JavaArchive.class)
                       .addAsResource(new ByteArrayAsset(properties.toByteArray()), new ScriptingConfiguration().getPrefix() + "properties");
   }
View Full Code Here


   // Private methods

   private void executeScriptsBeforeTest(BeforePersistenceTest beforePersistenceTest)
   {
      final ScriptingConfiguration configuration = scriptingConfigurationInstance.get();
      String[] scriptsToExecuteBeforeTest = configuration.getScriptsToExecuteBeforeTest();
      final List<SqlScriptResourceDescriptor> scripts = processScripts(scriptsToExecuteBeforeTest);
      applyScriptsBeforeTestEvent.fire(new ApplyScriptsBeforeTest(beforePersistenceTest, scripts));
   }
View Full Code Here

      applyScriptsBeforeTestEvent.fire(new ApplyScriptsBeforeTest(beforePersistenceTest, scripts));
   }

   private void executeScriptsAfterTest(AfterPersistenceTest afterPersistenceTest)
   {
      final ScriptingConfiguration configuration = scriptingConfigurationInstance.get();
      String[] scriptsToExecuteAfterTest = configuration.getScriptsToExecuteAfterTest();
      final List<SqlScriptResourceDescriptor> scripts = processScripts(scriptsToExecuteAfterTest);
      applyScriptsAfterTestEvent.fire(new ApplyScriptsAfterTest(afterPersistenceTest, scripts));
   }
View Full Code Here

      return output;
   }

   private JavaArchive scriptingConfigurationSerializedAsProperties()
   {
      final ScriptingConfiguration scriptingConfigurationPrototype = new ScriptingConfiguration();
      final Map<String, String> extensionProperties = extractExtensionProperties(arquillianDescriptorInstance.get(), scriptingConfigurationPrototype.getQualifier());
      final ByteArrayOutputStream properties = new PropertiesSerializer(scriptingConfigurationPrototype.getPrefix()).serializeToProperties(extensionProperties);
      return ShrinkWrap.create(JavaArchive.class)
                       .addAsResource(new ByteArrayAsset(properties.toByteArray()), new ScriptingConfiguration().getPrefix() + "properties");
   }
View Full Code Here

TOP

Related Classes of org.jboss.arquillian.persistence.script.configuration.ScriptingConfiguration

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.