use of org.eclipse.n4js.cli.helper.ProcessResult in project n4js by eclipse.
the class IncompleteApiImplementationTest method testfield_vs_getset_2.
/**
*/
@Test
public void testfield_vs_getset_2() {
String expectedString = "Loaded Implementation one.x.impl::fields.F.n4js";
String fileToRunName = fileToExecute_fields("Exec_AT_IDEBUG-505_field_vs_getset_3.js");
ProcessResult nodejsResult = nodejsRun(workspace.toPath(), Path.of(fileToRunName));
assertEquals(nodejsResult.toString(), expectedString, nodejsResult.getStdOut());
}
use of org.eclipse.n4js.cli.helper.ProcessResult in project n4js by eclipse.
the class IncompleteApiImplementationTest method testImplemented_members.
/**
* testing correct behavior of untouched elements.
*/
@Test
public void testImplemented_members() {
String fileToRunName = fileToExecute_direct("Exec_implemented_members.js");
ProcessResult nodejsResult = nodejsRun(workspace.toPath(), Path.of(fileToRunName));
String expectedString = "Loaded Implementation one.x.impl::p.A.n4js\n" + "OK: holds not undefined\n" + "OK: holds not undefined";
assertEquals(nodejsResult.toString(), expectedString, nodejsResult.getStdOut());
}
use of org.eclipse.n4js.cli.helper.ProcessResult in project n4js by eclipse.
the class IncompleteApiImplementationTest method testInterfaces_static_method_missing.
/**
*/
@Test
public void testInterfaces_static_method_missing() {
String expectedString = "Loaded Implementation one.x.impl::p.A.n4js";
String fileToRunName = fileToExecute_direct("Exec_AT_IDE-1510_Interfaces_static_method_missing.js");
ProcessResult nodejsResult = nodejsRun(workspace.toPath(), Path.of(fileToRunName));
assertEquals(nodejsResult.toString(), expectedString, nodejsResult.getStdOut());
}
use of org.eclipse.n4js.cli.helper.ProcessResult in project n4js by eclipse.
the class IncompleteApiImplementationTest method testfield_vs_getset_A.
/**
*/
@Test
public void testfield_vs_getset_A() {
String expectedString = "Loaded Implementation one.x.impl::fields.F.n4js";
String fileToRunName = fileToExecute_fields("Exec_AT_IDEBUG-505_field_vs_getset_A.js");
ProcessResult nodejsResult = nodejsRun(workspace.toPath(), Path.of(fileToRunName));
assertEquals(nodejsResult.toString(), expectedString, nodejsResult.getStdOut());
}
use of org.eclipse.n4js.cli.helper.ProcessResult in project n4js by eclipse.
the class IncompleteApiImplementationTest method testfield_vs_getset_6.
/**
*/
@Test
public void testfield_vs_getset_6() {
String expectedString = "Loaded Implementation one.x.impl::fields.F.n4js";
String fileToRunName = fileToExecute_fields("Exec_AT_IDEBUG-505_field_vs_getset_6.js");
ProcessResult nodejsResult = nodejsRun(workspace.toPath(), Path.of(fileToRunName));
assertEquals(nodejsResult.toString(), expectedString, nodejsResult.getStdOut());
}
Aggregations