Search in sources :

Example 6 with LogCollector

use of ch.ivyteam.ivy.maven.log.LogCollector in project project-build-plugin by axonivy.

the class TestEngineControlEngineDirectory method engineControl_engineDir_doesNotExist.

@Test
public void engineControl_engineDir_doesNotExist() throws Exception {
    LogCollector log = new LogCollector();
    StopTestEngineMojo mojo = rule.getMojo();
    mojo.setLog(log);
    mojo.testEngine = TestEngineLocation.MODIFY_EXISTING;
    EngineControl controller = mojo.createEngineController();
    controller.stop();
    assertThat(log.getWarnings()).isEmpty();
    assertThat(log.getErrors()).isEmpty();
}
Also used : LogCollector(ch.ivyteam.ivy.maven.log.LogCollector) EngineControl(ch.ivyteam.ivy.maven.engine.EngineControl) BaseEngineProjectMojoTest(ch.ivyteam.ivy.maven.BaseEngineProjectMojoTest) Test(org.junit.Test)

Aggregations

LogCollector (ch.ivyteam.ivy.maven.log.LogCollector)6 Test (org.junit.Test)6 BaseEngineProjectMojoTest (ch.ivyteam.ivy.maven.BaseEngineProjectMojoTest)4 File (java.io.File)4 LogEntry (ch.ivyteam.ivy.maven.log.LogCollector.LogEntry)2 EngineControl (ch.ivyteam.ivy.maven.engine.EngineControl)1 Executor (org.apache.commons.exec.Executor)1