use of org.eclipse.xtext.testing.Flaky in project xtext-xtend by eclipse.
the class Bug370955Test method test_02.
@Flaky
@Test
public void test_02() throws Exception {
ContentAssistProcessorTestBuilder _newBuilder = this.newBuilder();
StringConcatenation _builder = new StringConcatenation();
_builder.append("class C {");
_builder.newLine();
_builder.append("\t");
_builder.append("def void method(CharSequence c) {");
_builder.newLine();
_builder.append("\t\t");
_builder.append("method(c.toString)");
_builder.newLine();
_builder.append("\t");
_builder.append("}\t");
_builder.newLine();
_builder.append("}");
_builder.newLine();
_newBuilder.append(_builder.toString()).assertTextAtCursorPosition("toString", "toString".length(), "!=", "!==", "+", "->", "<", "<=", "<=>", "==", "===", "=>", ">", ">=", "?:", "toString");
}
use of org.eclipse.xtext.testing.Flaky in project xtext-xtend by eclipse.
the class Bug439019Test method test_01.
@Flaky
@Test
public void test_01() throws Exception {
ContentAssistProcessorTestBuilder _newBuilder = this.newBuilder();
StringConcatenation _builder = new StringConcatenation();
_builder.append("class C {");
_builder.newLine();
_builder.append("\t");
_builder.append("@A(NA<|>)");
_builder.newLine();
_builder.append("\t");
_builder.append("String s1");
_builder.newLine();
_builder.append("}");
_builder.newLine();
_builder.append("annotation A {");
_builder.newLine();
_builder.append("\t");
_builder.append("E[] value");
_builder.newLine();
_builder.append("}");
_builder.newLine();
_builder.append("enum E {");
_builder.newLine();
_builder.append("\t");
_builder.append("NAME");
_builder.newLine();
_builder.append("}");
_builder.newLine();
_newBuilder.append(_builder.toString()).assertProposalAtCursor("NAME");
}
use of org.eclipse.xtext.testing.Flaky in project xtext-xtend by eclipse.
the class MemberFeatureCallProposalsTest method test_02.
@Flaky
@Test
public void test_02() throws Exception {
ContentAssistProcessorTestBuilder _newBuilder = this.newBuilder();
StringConcatenation _builder = new StringConcatenation();
_builder.append("class C {");
_builder.newLine();
_builder.append(" ");
_builder.append("def static void main() {");
_builder.newLine();
_builder.append(" ");
_builder.append("val it = #[]");
_builder.newLine();
_builder.append(" ");
_builder.append("em");
_builder.newLine();
_builder.append(" ");
_builder.append("}");
_builder.newLine();
_builder.append("}");
_builder.newLine();
_newBuilder.append(_builder.toString()).assertTextAtCursorPosition("em", 2, "empty", "emptyList", "emptyMap", "emptySet");
}
use of org.eclipse.xtext.testing.Flaky in project xtext-xtend by eclipse.
the class MemberFeatureCallProposalsTest method test_04.
@Flaky
@Test
public void test_04() throws Exception {
ContentAssistProcessorTestBuilder _newBuilder = this.newBuilder();
StringConcatenation _builder = new StringConcatenation();
_builder.append("class C {");
_builder.newLine();
_builder.append(" ");
_builder.append("def static void main() {");
_builder.newLine();
_builder.append(" ");
_builder.append("val it = #[]");
_builder.newLine();
_builder.append(" ");
_builder.append("it.addAll(em)");
_builder.newLine();
_builder.append(" ");
_builder.append("}");
_builder.newLine();
_builder.append("}");
_builder.newLine();
_newBuilder.append(_builder.toString()).assertTextAtCursorPosition("em", 2, "empty", "emptyList", "emptyMap", "emptySet");
}
Aggregations