use of org.eclipse.xtext.testing.Flaky in project xtext-xtend by eclipse.
the class Bug437678Test method test_01.
@Flaky
@Test
public void test_01() throws Exception {
ContentAssistProcessorTestBuilder _newBuilder = this.newBuilder();
StringConcatenation _builder = new StringConcatenation();
_builder.append("class A {");
_builder.newLine();
_builder.append("\t");
_builder.append("def methodA() {}");
_builder.newLine();
_builder.append("}");
_builder.newLine();
_builder.append("class B {");
_builder.newLine();
_builder.append("\t");
_builder.append("def methodB() {}");
_builder.newLine();
_builder.append("\t");
_builder.append("def void myInstance(Object o) {}");
_builder.newLine();
_builder.append("}");
_builder.newLine();
_builder.append("class C {");
_builder.newLine();
_builder.append("\t");
_builder.append("static extension B b");
_builder.newLine();
_builder.append("\t");
_builder.append("static String string");
_builder.newLine();
_builder.append("\t");
_builder.append("def static void main(A it) {");
_builder.newLine();
_builder.append("\t\t");
_builder.append("method|");
_builder.newLine();
_builder.append("\t");
_builder.append("}");
_builder.newLine();
_builder.append("}");
_builder.newLine();
_newBuilder.append(_builder.toString()).assertTextAtCursorPosition("ethod|", "methodA", "methodB", "main", "myInstance");
}
use of org.eclipse.xtext.testing.Flaky in project xtext-xtend by eclipse.
the class Bug437678Test method test_03.
@Flaky
@Test
public void test_03() throws Exception {
ContentAssistProcessorTestBuilder _newBuilder = this.newBuilder();
StringConcatenation _builder = new StringConcatenation();
_builder.append("class A {");
_builder.newLine();
_builder.append("\t");
_builder.append("def methodA() {}");
_builder.newLine();
_builder.append("}");
_builder.newLine();
_builder.append("class B {");
_builder.newLine();
_builder.append("\t");
_builder.append("def methodB() {}");
_builder.newLine();
_builder.append("\t");
_builder.append("def void myInstance(Object o) {}");
_builder.newLine();
_builder.append("}");
_builder.newLine();
_builder.append("class C {");
_builder.newLine();
_builder.append("\t");
_builder.append("static extension B b");
_builder.newLine();
_builder.append("\t");
_builder.append("static String string");
_builder.newLine();
_builder.append("\t");
_builder.append("def static void main(A a) {");
_builder.newLine();
_builder.append("\t\t");
_builder.append("method|");
_builder.newLine();
_builder.append("\t");
_builder.append("}");
_builder.newLine();
_builder.append("}");
_builder.newLine();
_newBuilder.append(_builder.toString()).assertTextAtCursorPosition("ethod|", "methodB", "main()", "myInstance()");
}
use of org.eclipse.xtext.testing.Flaky in project xtext-xtend by eclipse.
the class Bug437678Test method test_05.
@Flaky
@Test
public void test_05() throws Exception {
ContentAssistProcessorTestBuilder _newBuilder = this.newBuilder();
StringConcatenation _builder = new StringConcatenation();
_builder.append("class A {");
_builder.newLine();
_builder.append("\t");
_builder.append("def methodA() {}");
_builder.newLine();
_builder.append("}");
_builder.newLine();
_builder.append("class B {");
_builder.newLine();
_builder.append("\t");
_builder.append("def methodB() {}");
_builder.newLine();
_builder.append("\t");
_builder.append("def void myInstance(Object o) {}");
_builder.newLine();
_builder.append("}");
_builder.newLine();
_builder.append("class C {");
_builder.newLine();
_builder.append("\t");
_builder.append("static extension B b");
_builder.newLine();
_builder.append("\t");
_builder.append("static String string");
_builder.newLine();
_builder.append("\t");
_builder.append("def static void main(A a) {");
_builder.newLine();
_builder.append("\t\t");
_builder.append("a.method|");
_builder.newLine();
_builder.append("\t");
_builder.append("}");
_builder.newLine();
_builder.append("}");
_builder.newLine();
_newBuilder.append(_builder.toString()).assertTextAtCursorPosition("ethod|", "methodA", "main", "myInstance");
}
use of org.eclipse.xtext.testing.Flaky 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.testing.Flaky 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");
}
Aggregations