use of org.eclipse.xtext.ui.testing.ContentAssistProcessorTestBuilder in project xtext-xtend by eclipse.
the class Bug440069Test method test_03.
@Flaky
@Test
public void test_03() throws Exception {
ContentAssistProcessorTestBuilder _newBuilder = this.newBuilder();
StringConcatenation _builder = new StringConcatenation();
_builder.append("class MyExtension {");
_builder.newLine();
_builder.append("\t");
_builder.append("def String getXyzManager(Object o) {");
_builder.newLine();
_builder.append("\t\t");
_builder.append("return \'\'");
_builder.newLine();
_builder.append("\t");
_builder.append("}");
_builder.newLine();
_builder.append("}");
_builder.newLine();
_builder.append("class MyTest {");
_builder.newLine();
_builder.append("\t");
_builder.append("extension MyExtension = new MyExtension");
_builder.newLine();
_builder.append("\t");
_builder.append("def test() {");
_builder.newLine();
_builder.append("\t\t");
_builder.append("xyzManage<|>");
_builder.newLine();
_builder.append("\t");
_builder.append("}");
_builder.newLine();
_builder.append("}");
_builder.newLine();
_newBuilder.append(_builder.toString()).assertProposalAtCursor("xyzManager");
}
use of org.eclipse.xtext.ui.testing.ContentAssistProcessorTestBuilder in project xtext-xtend by eclipse.
the class Bug440069Test method test_02.
@Test
public void test_02() throws Exception {
ContentAssistProcessorTestBuilder _newBuilder = this.newBuilder();
StringConcatenation _builder = new StringConcatenation();
_builder.append("import static extension MyExtension.*");
_builder.newLine();
_builder.append("class MyExtension {");
_builder.newLine();
_builder.append("\t");
_builder.append("def static String getXyzManager() {");
_builder.newLine();
_builder.append("\t\t");
_builder.append("return \'\'");
_builder.newLine();
_builder.append("\t");
_builder.append("}");
_builder.newLine();
_builder.append("}");
_builder.newLine();
_builder.append("class MyTest {");
_builder.newLine();
_builder.append("\t");
_builder.append("def test() {");
_builder.newLine();
_builder.append("\t\t");
_builder.append("getXyzManage<|>");
_builder.newLine();
_builder.append("\t");
_builder.append("}");
_builder.newLine();
_builder.append("}");
_builder.newLine();
_newBuilder.append(_builder.toString()).assertProposalAtCursor("xyzManager");
}
use of org.eclipse.xtext.ui.testing.ContentAssistProcessorTestBuilder in project xtext-xtend by eclipse.
the class Bug440069Test method test_01.
@Flaky
@Test
public void test_01() throws Exception {
ContentAssistProcessorTestBuilder _newBuilder = this.newBuilder();
StringConcatenation _builder = new StringConcatenation();
_builder.append("class MyExtension {");
_builder.newLine();
_builder.append("\t");
_builder.append("def String getXyzManager() {");
_builder.newLine();
_builder.append("\t\t");
_builder.append("return \'\'");
_builder.newLine();
_builder.append("\t");
_builder.append("}");
_builder.newLine();
_builder.append("}");
_builder.newLine();
_builder.append("class MyTest {");
_builder.newLine();
_builder.append("\t");
_builder.append("extension MyExtension = new MyExtension");
_builder.newLine();
_builder.append("\t");
_builder.append("def test() {");
_builder.newLine();
_builder.append("\t\t");
_builder.append("xyzManage<|>");
_builder.newLine();
_builder.append("\t");
_builder.append("}");
_builder.newLine();
_builder.append("}");
_builder.newLine();
_newBuilder.append(_builder.toString()).assertProposalAtCursor("xyzManager");
}
use of org.eclipse.xtext.ui.testing.ContentAssistProcessorTestBuilder in project xtext-xtend by eclipse.
the class Bug440858Test method test_01.
@Test
public void test_01() throws Exception {
ContentAssistProcessorTestBuilder _newBuilder = this.newBuilder();
StringConcatenation _builder = new StringConcatenation();
_builder.append("annotation MyTest {");
_builder.newLine();
_builder.append("\t");
_builder.append("static class MyInner {");
_builder.newLine();
_builder.append("\t\t");
_builder.append("toSt<|>");
_builder.newLine();
_builder.append("\t");
_builder.append("}");
_builder.newLine();
_builder.append("}");
_builder.newLine();
_newBuilder.append(_builder.toString()).assertProposalAtCursor("\n\t\toverride toString() {\n\t\t\tsuper.toString()\n\t\t}\n\t\t");
}
use of org.eclipse.xtext.ui.testing.ContentAssistProcessorTestBuilder in project xtext-xtend by eclipse.
the class Bug440858Test method test_02.
@Test
public void test_02() throws Exception {
ContentAssistProcessorTestBuilder _newBuilder = this.newBuilder();
StringConcatenation _builder = new StringConcatenation();
_builder.append("annotation MyTest {");
_builder.newLine();
_builder.append("\t");
_builder.append("static class MyInner {");
_builder.newLine();
_builder.append("\t\t");
_builder.append("<|>");
_builder.newLine();
_builder.append("\t");
_builder.append("}");
_builder.newLine();
_builder.append("}");
_builder.newLine();
_newBuilder.append(_builder.toString()).assertProposalAtCursor("\n\t\toverride toString() {\n\t\t\tsuper.toString()\n\t\t}\n\t\t");
}
Aggregations