Fixed issue 34821: High memory usage on tests using arquillian.
authorJavier Armendáriz <javier.armendariz@openbravo.com>
Mon, 11 Feb 2019 11:01:09 +0100
changeset 35440 9275bf6ed1ff
parent 35438 6f33ffa453d5 (current diff)
parent 35439 3a11d791ddab (diff)
child 35441 4d0df2352c16
Fixed issue 34821: High memory usage on tests using arquillian.
modules/org.openbravo.base.weld/src-test/org/openbravo/base/weld/test/WeldBaseTest.java
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	Wed Feb 06 13:18:44 2019 +0100
+++ b/modules/org.openbravo.base.weld/src-test/org/openbravo/base/weld/test/WeldBaseTest.java	Mon Feb 11 11:01:09 2019 +0100
@@ -11,7 +11,7 @@
  * under the License.
  * The Original Code is Openbravo ERP.
  * The Initial Developer of the Original Code is Openbravo SLU
- * All portions are Copyright (C) 2010-2018 Openbravo SLU
+ * All portions are Copyright (C) 2010-2019 Openbravo SLU
  * All Rights Reserved.
  * Contributor(s):  ______________________________________.
  ************************************************************************
@@ -28,6 +28,7 @@
 import javax.enterprise.util.AnnotationLiteral;
 import javax.inject.Inject;
 
+import org.eu.ingwar.tools.arquillian.extension.suite.annotations.ArquillianSuiteDeployment;
 import org.apache.logging.log4j.LogManager;
 import org.apache.logging.log4j.Logger;
 import org.hibernate.dialect.function.SQLFunction;
@@ -54,6 +55,7 @@
  * @author mtaal
  */
 @RunWith(Arquillian.class)
+@ArquillianSuiteDeployment
 public class WeldBaseTest extends OBBaseTest {
   private static final Logger log = LogManager.getLogger();
 
--- a/src-test/.classpath.template	Wed Feb 06 13:18:44 2019 +0100
+++ b/src-test/.classpath.template	Mon Feb 11 11:01:09 2019 +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>