use of org.eclipse.n4js.cli.helper.ProcessResult in project n4js by eclipse.
the class IncompleteApiImplementationTest method testConsumed_Members_of_Missing_Inteface.
// ++ ++ ++++++++ + + ++++ +++ + ++ +
// Interfaces - mixed in member stubs
// ++ ++ ++++++++ + + ++++ +++ + ++ +
/**
* accumulative testing of combinations.
*/
@Test
public void testConsumed_Members_of_Missing_Inteface() {
String expectedString = "Loaded Implementation one.x.impl::p.IF.n4js";
String fileToRunName = fileToExecute_if("Exec_AT_IDE-1510_Consumed_Members_of_Missing_Inteface.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_literal_in_missing_EnumSB.
/**
*/
@Test
@Ignore("IDE-1574 decide on Enum-strategy.")
public void testEnums_literal_in_missing_EnumSB() {
String expectedString = "Loaded Implementation one.x.impl::p.A.n4js";
String fileToRunName = fileToExecute_direct("Exec_AT_IDE_1510_Enums_literal_in_missing_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 testfield_vs_getset_B.
/**
*/
@Test
public void testfield_vs_getset_B() {
String expectedString = "Loaded Implementation one.x.impl::fields.F.n4js";
String fileToRunName = fileToExecute_fields("Exec_AT_IDEBUG-505_field_vs_getset_B.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 testVariable_global_variable.
// ++ ++ ++++++++ + + ++++ +++ + ++ +
// global variable
// ++ ++ ++++++++ + + ++++ +++ + ++ +
/**
*/
@Ignore("Variables not yet supported by project comparison. Results in 'module cannot be loaded.'")
@Test
public void testVariable_global_variable() {
String expectedString = "Loaded Implementation one.x.impl::p.VarFun.n4js";
String fileToRunName = fileToExecute_var_and_fun("Exec_AT_IDE-1510_Variable_And_Function_test_global_variable.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_5.
/**
*/
@Test
public void testfield_vs_getset_5() {
String expectedString = "Loaded Implementation one.x.impl::fields.F.n4js";
String fileToRunName = fileToExecute_fields("Exec_AT_IDEBUG-505_field_vs_getset_1.js");
ProcessResult nodejsResult = nodejsRun(workspace.toPath(), Path.of(fileToRunName));
assertEquals(nodejsResult.toString(), expectedString, nodejsResult.getStdOut());
}
Aggregations