Refactor Argeo API
[gpl/argeo-slc.git] / org.argeo.slc.runtime / src / org / argeo / slc / runtime / test / SimpleTestResult.java
index 3791a7ec6300ff773a9b61974e816365f209423c..649e5d390f6ef661c786b958d9bd2d5ae78151a1 100644 (file)
@@ -7,19 +7,15 @@ import java.util.TreeMap;
 import java.util.UUID;
 import java.util.Vector;
 
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
-import org.argeo.slc.SlcException;
-import org.argeo.slc.test.TestResult;
-import org.argeo.slc.test.TestResultPart;
-import org.argeo.slc.test.TestRun;
+import org.argeo.api.slc.SlcException;
+import org.argeo.api.slc.test.TestResult;
+import org.argeo.api.slc.test.TestResultPart;
+import org.argeo.api.slc.test.TestRun;
 
 /**
  * Basic implementation of a test result containing only a list of result parts.
  */
 public class SimpleTestResult implements TestResult {
-       private static Log log = LogFactory.getLog(SimpleTestResult.class);
-
        private String uuid;
        private String currentTestRunUuid;
 
@@ -32,13 +28,11 @@ public class SimpleTestResult implements TestResult {
 
        public void addResultPart(TestResultPart part) {
                if (throwError && part.getStatus() == ERROR) {
-                       throw new SlcException(
-                                       "There was an error in the underlying test: "
-                                                       + part.getExceptionMessage());
+                       throw new SlcException("There was an error in the underlying test: " + part.getExceptionMessage());
                }
                parts.add(part);
-               if (log.isDebugEnabled())
-                       log.debug(part);
+//             if (log.isDebugEnabled())
+//                     log.debug(part);
        }
 
        public void close() {