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();
}
}
Aggregations