[cdi-junit] log deployed classes as debug
authorAsier Lostalé <asier.lostale@openbravo.com>
Tue, 16 Jun 2015 13:26:13 +0200
changeset 27137 bb9f3baef514
parent 27136 e2c298443dfe
child 27138 1efeff756e75
[cdi-junit] log deployed classes as debug
modules/org.openbravo.base.weld/src-test/org/openbravo/base/weld/test/WeldBaseTest.java
--- a/modules/org.openbravo.base.weld/src-test/org/openbravo/base/weld/test/WeldBaseTest.java	Tue Jun 16 13:07:27 2015 +0200
+++ b/modules/org.openbravo.base.weld/src-test/org/openbravo/base/weld/test/WeldBaseTest.java	Tue Jun 16 13:26:13 2015 +0200
@@ -35,6 +35,8 @@
 import org.openbravo.base.session.OBPropertiesProvider;
 import org.openbravo.base.weld.WeldUtils;
 import org.openbravo.test.base.OBBaseTest;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
 
 /**
  * Base test for weld, provides access to the weld container.
@@ -43,6 +45,7 @@
  */
 @RunWith(Arquillian.class)
 public class WeldBaseTest extends OBBaseTest {
+  private static final Logger log = LoggerFactory.getLogger(WeldBaseTest.class);
 
   @Deployment
   public static JavaArchive createTestArchive() {
@@ -62,7 +65,7 @@
     // include all libraries deployed in webapp container
     archive.addAsDirectory(sourcePath + "/WebContent/WEB-INF/lib");
 
-    System.out.println(archive.toString(true));
+    log.debug(archive.toString(true));
     return archive;
   }