Search in sources :

Example 1 with MavenServerManager

use of org.eclipse.che.plugin.maven.server.MavenServerManager in project che by eclipse.

the class MavenServerManagerTest method testBuildMavenServerParametersMainWorkDirExec.

@Test
public void testBuildMavenServerParametersMainWorkDirExec() throws Exception {
    MavenServerManager test = new MavenServerManager("test");
    try {
        JavaParameters parameters = test.buildMavenServerParameters();
        assertThat(parameters.getMainClassName()).isEqualTo("org.eclipse.che.maven.server.MavenServerMain");
        assertThat(parameters.getWorkingDirectory()).isEqualTo(System.getProperty("java.io.tmpdir"));
        assertThat(parameters.getJavaExecutable()).isEqualTo("java");
    } finally {
        test.shutdown();
    }
}
Also used : JavaParameters(org.eclipse.che.plugin.maven.server.execution.JavaParameters) MavenServerManager(org.eclipse.che.plugin.maven.server.MavenServerManager) Test(org.testng.annotations.Test)

Aggregations

MavenServerManager (org.eclipse.che.plugin.maven.server.MavenServerManager)1 JavaParameters (org.eclipse.che.plugin.maven.server.execution.JavaParameters)1 Test (org.testng.annotations.Test)1