[wtmf] Arquillian tests makes a single deployment for all tests.
authorJavier Armendáriz <javier.armendariz@openbravo.com>
Wed, 07 Mar 2018 12:45:04 +0100
changeset 35439 3a11d791ddab
parent 33671 ee9c18c5933d
child 35440 9275bf6ed1ff
[wtmf] Arquillian tests makes a single deployment for all tests.

Installed an arquillian extension that forces to make a single deployment for all
arquillian tests instead of creating one for each test class. This might reduce
the memory usage of unit tests.
modules/org.openbravo.base.weld/lib/test/arquillian-suite-extension-1.1.2.jar
modules/org.openbravo.base.weld/lib/test/reflections-0.9.8.jar
modules/org.openbravo.base.weld/src-test/org/openbravo/base/weld/test/WeldBaseTest.java
src-test/.classpath.template
Binary file modules/org.openbravo.base.weld/lib/test/arquillian-suite-extension-1.1.2.jar has changed
Binary file modules/org.openbravo.base.weld/lib/test/reflections-0.9.8.jar has changed
--- a/modules/org.openbravo.base.weld/src-test/org/openbravo/base/weld/test/WeldBaseTest.java	Mon Mar 12 19:16:54 2018 +0100
+++ b/modules/org.openbravo.base.weld/src-test/org/openbravo/base/weld/test/WeldBaseTest.java	Wed Mar 07 12:45:04 2018 +0100
@@ -24,6 +24,7 @@
 import javax.enterprise.util.AnnotationLiteral;
 import javax.inject.Inject;
 
+import org.eu.ingwar.tools.arquillian.extension.suite.annotations.ArquillianSuiteDeployment;
 import org.jboss.arquillian.container.test.api.Deployment;
 import org.jboss.arquillian.junit.Arquillian;
 import org.jboss.shrinkwrap.api.ShrinkWrap;
@@ -48,6 +49,7 @@
  * @author mtaal
  */
 @RunWith(Arquillian.class)
+@ArquillianSuiteDeployment
 public class WeldBaseTest extends OBBaseTest {
   private static final Logger log = LoggerFactory.getLogger(WeldBaseTest.class);
 
--- a/src-test/.classpath.template	Mon Mar 12 19:16:54 2018 +0100
+++ b/src-test/.classpath.template	Wed Mar 07 12:45:04 2018 +0100
@@ -36,5 +36,7 @@
 	<classpathentry kind="lib" path="test-lib/validation-api-1.0.0.GA.jar"/>
 	<classpathentry kind="lib" path="test-lib/arquillian-config-api-1.1.8.Final.jar"/>
 	<classpathentry kind="lib" path="test-lib/arquillian-config-impl-base-1.1.8.Final.jar"/>
+	<classpathentry kind="lib" path="test-lib/arquillian-suite-extension-1.1.2.jar"/>
+	<classpathentry kind="lib" path="test-lib/reflections-0.9.8.jar"/>
 	<classpathentry kind="output" path="build/classes"/>
 </classpath>