use of org.eclipse.n4js.cli.helper.ProcessResult in project n4js by eclipse.
the class IncompleteApiImplementationTest method testInterfaces_provided_method.
/**
*/
@Test
public void testInterfaces_provided_method() {
String expectedString = "Loaded Implementation one.x.impl::p.A.n4js" + "\n" + "OK: holds not undefined";
String fileToRunName = fileToExecute_direct("Exec_AT_IDE-1510_Interfaces_provided_method.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 testEnums_missing_Literal_in_existing_EnumSB.
/**
*/
@Test
@Ignore("IDE-1574 decide on Enum-strategy.")
public void testEnums_missing_Literal_in_existing_EnumSB() {
String expectedString = "Loaded Implementation one.x.impl::p.A.n4js";
String fileToRunName = fileToExecute_direct("Exec_AT_IDE_1510_Enums_missing_Literal_in_existing_EnumSB.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 testSubclass_normal_inherited.
/**
*/
@Test
public void testSubclass_normal_inherited() {
String expectedString = "Loaded Implementation one.x.impl::p.StubRoute.n4js";
String fileToRunName = fileToExecute_routing("Exec_AT_IDE-1510_Subclass_normal_inherited.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 testMissing_field_in_class.
/**
*/
@Test
public void testMissing_field_in_class() {
String fileToRunName = fileToExecute_direct("Exec_missing_field_in_class.js");
ProcessResult nodejsResult = nodejsRun(workspace.toPath(), Path.of(fileToRunName));
String expectedString = "Loaded Implementation one.x.impl::p.A.n4js";
assertEquals(nodejsResult.toString(), expectedString, nodejsResult.getStdOut());
}
use of org.eclipse.n4js.cli.helper.ProcessResult in project n4js by eclipse.
the class IncompleteApiImplementationTest method testSubclass_missing_inherited.
// ++ ++ ++++++++ + + ++++ +++ + ++ +
// routing
// ++ ++ ++++++++ + + ++++ +++ + ++ +
/**
*/
@Test
public void testSubclass_missing_inherited() {
String expectedString = "Loaded Implementation one.x.impl::p.StubRoute.n4js";
String fileToRunName = fileToExecute_routing("Exec_AT_IDE-1510_Subclass_missing_inherited.js");
ProcessResult nodejsResult = nodejsRun(workspace.toPath(), Path.of(fileToRunName));
assertEquals(nodejsResult.toString(), expectedString, nodejsResult.getStdOut());
}
Aggregations