Examples of LevelState


Examples of scala_maven_executions.LogProcessorUtils.LevelState

        //err and out are redirected to out
        if (!_redirectToLog) {
          exec.setStreamHandler(new PumpStreamHandler(System.out, System.err, System.in));
        } else {
            exec.setStreamHandler(new PumpStreamHandler(new LogOutputStream() {
                private LevelState _previous = new LevelState();
               
                @Override
                protected void processLine(String line, int level) {
                  try {
                    _previous = LogProcessorUtils.levelStateOf(line, _previous);
View Full Code Here

Examples of scala_maven_executions.LogProcessorUtils.LevelState

import junit.framework.TestCase;

public class LogProcessorUtilsTest extends TestCase {
  private LevelState assertLevelState(String input, LevelState previous, Level expectedLevel, String expectedUntilContains) throws Exception {
    LevelState back = LogProcessorUtils.levelStateOf(input, previous);
    assertEquals(expectedLevel, back.level);
    assertEquals(expectedUntilContains, back.untilContains);
    return back;
  }
View Full Code Here

Examples of scala_maven_executions.LogProcessorUtils.LevelState

    assertEquals(expectedUntilContains, back.untilContains);
    return back;
  }
 
  public void testJdkSplit() throws Exception {
    LevelState previous = new LevelState();
    previous = assertLevelState("/home/hub/p/eee/src/main/scala:-1: info: compiling", previous, Level.INFO, null);
    previous = assertLevelState("Compiling 128 source files to /home/hub/p/eee/target/classes at 1312794546514", previous, Level.INFO, null);
    previous = assertLevelState("Recompiling 1 files", previous, Level.INFO, null);
    previous = assertLevelState("/home/hub/p/eee/src/main/scala/Service.scala:72: error: type mismatch;", previous, Level.ERROR, "^");
    previous = assertLevelState("found : Unit", previous, Level.ERROR, "^");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.