use of org.eclipse.n4js.utils.process.ProcessResult in project n4js by eclipse.
the class RunExternalLibrariesPluginTest method runClientWithTwoClosedWorkspaceProjectsThenReopenThem.
/**
*/
@Test
public void runClientWithTwoClosedWorkspaceProjectsThenReopenThem() throws CoreException {
for (final String libProjectName : newArrayList(PB, PD)) {
getProjectByName(libProjectName).close(new NullProgressMonitor());
waitForAutoBuildCheckIndexRigid();
}
final ProcessResult firstResult = runClient();
// @formatter:off
assertEquals("Unexpected output after running the client module with two closed projects: " + firstResult, "Workspace A<init>" + NL + "External B<init>" + NL + "Workspace C<init>" + NL + "External D<init>" + NL, firstResult.getStdOut());
for (final String libProjectName : newArrayList(PB, PD)) {
getProjectByName(libProjectName).open(new NullProgressMonitor());
waitForAutoBuildCheckIndexRigid();
}
final ProcessResult secondResult = runClient();
// @formatter:off
assertEquals("Unexpected output after running the client module with all opened projects: " + secondResult, "Workspace A<init>" + NL + "Workspace B<init>" + NL + "Workspace C<init>" + NL + "Workspace D<init>" + NL, secondResult.getStdOut());
// @formatter:on
}
use of org.eclipse.n4js.utils.process.ProcessResult in project n4js by eclipse.
the class RunExternalLibrariesPluginTest method runClientWithTwoClosedWorkspaceProjectsWithDirectDependency.
/**
*/
@Test
public void runClientWithTwoClosedWorkspaceProjectsWithDirectDependency() throws CoreException {
for (final String libProjectName : newArrayList(PB, PC)) {
getProjectByName(libProjectName).close(new NullProgressMonitor());
waitForAutoBuildCheckIndexRigid();
}
final ProcessResult result = runClient();
// @formatter:off
assertEquals("Unexpected output after running the client module: " + result, "Workspace A<init>" + NL + "External B<init>" + NL + "External C<init>" + NL + "Workspace D<init>" + NL, result.getStdOut());
// @formatter:on
}
use of org.eclipse.n4js.utils.process.ProcessResult in project n4js by eclipse.
the class RunExternalLibrariesPluginTest method runClientWithTwoClosedWorkspaceProjectsWithTransitiveDependency.
/**
*/
@Test
public void runClientWithTwoClosedWorkspaceProjectsWithTransitiveDependency() throws CoreException {
for (final String libProjectName : newArrayList(PB, PD)) {
getProjectByName(libProjectName).close(new NullProgressMonitor());
waitForAutoBuildCheckIndexRigid();
}
final ProcessResult result = runClient();
// @formatter:off
assertEquals("Unexpected output after running the client module: " + result, "Workspace A<init>" + NL + "External B<init>" + NL + "Workspace C<init>" + NL + "External D<init>" + NL, result.getStdOut());
// @formatter:on
}
use of org.eclipse.n4js.utils.process.ProcessResult in project n4js by eclipse.
the class RunExternalLibrariesPluginTest method runClientWithTwoDeletedWorkspaceProjectsThenReImportThem.
/**
*/
@Test
public void runClientWithTwoDeletedWorkspaceProjectsThenReImportThem() throws Exception {
for (final String libProjectName : newArrayList(PB, PD)) {
getProjectByName(libProjectName).delete(true, new NullProgressMonitor());
waitForAutoBuildCheckIndexRigid();
}
final ProcessResult firstResult = runClient();
// @formatter:off
assertEquals("Unexpected output after running the client module with two deleted projects: " + firstResult, "Workspace A<init>" + NL + "External B<init>" + NL + "Workspace C<init>" + NL + "External D<init>" + NL, firstResult.getStdOut());
for (final String libProjectName : newArrayList(PB, PD)) {
final File projectsRoot = new File(getResourceUri(PROBANDS, WORKSPACE_LOC));
ProjectTestsUtils.importProject(projectsRoot, libProjectName);
waitForAutoBuildCheckIndexRigid();
}
final ProcessResult secondResult = runClient();
// @formatter:off
assertEquals("Unexpected output after running the client module with all opened projects: " + secondResult, "Workspace A<init>" + NL + "Workspace B<init>" + NL + "Workspace C<init>" + NL + "Workspace D<init>" + NL, secondResult.getStdOut());
// @formatter:on
}
use of org.eclipse.n4js.utils.process.ProcessResult in project n4js by eclipse.
the class RunExternalLibrariesPluginTest method runClientWithTwoDeletedWorkspaceProjects.
/**
*/
@Test
public void runClientWithTwoDeletedWorkspaceProjects() throws CoreException {
for (final String libProjectName : newArrayList(PB, PD)) {
getProjectByName(libProjectName).delete(true, new NullProgressMonitor());
waitForAutoBuildCheckIndexRigid();
}
final ProcessResult result = runClient();
// @formatter:off
assertEquals("Unexpected output after running the client module: " + result, "Workspace A<init>" + NL + "External B<init>" + NL + "Workspace C<init>" + NL + "External D<init>" + NL, result.getStdOut());
// @formatter:on
}
Aggregations