X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=tests%2Forg.simantics.scl.compiler.tests%2Fsrc%2Forg%2Fsimantics%2Fscl%2Fcompiler%2Ftests%2FTestCommandSession.java;h=ffeaa6b6ff8fa7cc42e011f5c19c863aaa9db54b;hp=784a80b4c6072383d659786d57bd9e0eb48fd1ec;hb=1dfeb7d5c49b1391cd9d877e1eddab18995cb151;hpb=c13c4179bda758e77fe1f2032d3c4268bb9e3120 diff --git a/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/TestCommandSession.java b/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/TestCommandSession.java index 784a80b4c..ffeaa6b6f 100644 --- a/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/TestCommandSession.java +++ b/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/TestCommandSession.java @@ -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); } };