]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/TestCommandSession.java
Replace System.err and System.out with SLF4J Logging
[simantics/platform.git] / tests / org.simantics.scl.compiler.tests / src / org / simantics / scl / compiler / tests / TestCommandSession.java
index 784a80b4c6072383d659786d57bd9e0eb48fd1ec..ffeaa6b6ff8fa7cc42e011f5c19c863aaa9db54b 100644 (file)
@@ -5,14 +5,16 @@ import org.junit.Before;
 import org.junit.Test;
 import org.simantics.scl.compiler.commands.CommandSession;
 import org.simantics.scl.compiler.errors.CompilationError;
-import org.simantics.scl.compiler.errors.CompilationErrorFormatter;
 import org.simantics.scl.compiler.module.repository.ModuleRepository;
 import org.simantics.scl.runtime.reporting.AbstractSCLReportingHandler;
 import org.simantics.scl.runtime.reporting.SCLReportingHandler;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
 
 
 public class TestCommandSession {
 
+    private static final Logger LOGGER = LoggerFactory.getLogger(TestCommandSession.class);
     ModuleRepository moduleRepository;
 
     @Before
@@ -30,11 +32,11 @@ public class TestCommandSession {
     private static final SCLReportingHandler TEST_HANDLER = new AbstractSCLReportingHandler() {
         @Override
         public void print(String text) {
-            System.out.println(text);
+            LOGGER.info(text);
         }
         
         public void printError(String error) {
-            System.err.println(error);
+            LOGGER.error(error);
             throw new SCLErrorMessageException(error);
         }
     };