Package org.eclipse.xtext.junit4.ui

Examples of org.eclipse.xtext.junit4.ui.ContentAssistProcessorTestBuilder


  }
 
  @Test
  public void testIUContentAssist6() {
    try {
      ContentAssistProcessorTestBuilder _newBuilder = this.newBuilder();
      StringConcatenation _builder = new StringConcatenation();
      _builder.append("target \"TPName\"");
      _builder.newLine();
      _builder.append("location \"location4\" {");
      _builder.newLine();
      _builder.append("\t");
      _builder.append("c");
      _builder.newLine();
      _builder.append("}");
      _builder.newLine();
      ContentAssistProcessorTestBuilder _append = _newBuilder.append(_builder.toString());
      ContentAssistProcessorTestBuilder _cursorBack = _append.cursorBack(3);
      _cursorBack.assertText(
        "com.iu1",
        "com.iu2",
        "com.iu3");
    } catch (Throwable _e) {
      throw Exceptions.sneakyThrow(_e);
View Full Code Here


  }
 
  @Test
  public void testIUContentAssist7() {
    try {
      ContentAssistProcessorTestBuilder _newBuilder = this.newBuilder();
      StringConcatenation _builder = new StringConcatenation();
      _builder.append("target \"TPName\"");
      _builder.newLine();
      _builder.append("location \"emptyLocation\" {");
      _builder.newLine();
      _builder.append("\t");
      _builder.newLine();
      _builder.append("}");
      _builder.newLine();
      ContentAssistProcessorTestBuilder _append = _newBuilder.append(_builder.toString());
      ContentAssistProcessorTestBuilder _cursorBack = _append.cursorBack(3);
      _cursorBack.assertText("");
    } catch (Throwable _e) {
      throw Exceptions.sneakyThrow(_e);
    }
  }
View Full Code Here

  }
 
  @Test
  public void testIUContentAssist8() {
    try {
      ContentAssistProcessorTestBuilder _newBuilder = this.newBuilder();
      StringConcatenation _builder = new StringConcatenation();
      _builder.append("target \"TPName\"");
      _builder.newLine();
      _builder.append("location \"badLocation\" {");
      _builder.newLine();
      _builder.append("\t");
      _builder.newLine();
      _builder.append("}");
      _builder.newLine();
      ContentAssistProcessorTestBuilder _append = _newBuilder.append(_builder.toString());
      ContentAssistProcessorTestBuilder _cursorBack = _append.cursorBack(3);
      _cursorBack.assertText("");
    } catch (Throwable _e) {
      throw Exceptions.sneakyThrow(_e);
    }
  }
View Full Code Here

  }
 
  @Test
  public void testIUVersionContentAssist1() {
    try {
      ContentAssistProcessorTestBuilder _newBuilder = this.newBuilder();
      StringConcatenation _builder = new StringConcatenation();
      _builder.append("target \"TPName\"");
      _builder.newLine();
      _builder.append("location \"location1\" {");
      _builder.newLine();
      _builder.append("\t");
      _builder.append("org.iu1 ");
      _builder.newLine();
      _builder.append("}");
      _builder.newLine();
      ContentAssistProcessorTestBuilder _append = _newBuilder.append(_builder.toString());
      ContentAssistProcessorTestBuilder _cursorBack = _append.cursorBack(3);
      _cursorBack.assertText(
        "[1.2.0,1.2.1)",
        "[1.2.0,1.3.0)",
        "[1.2.0,2.0.0)",
        "[1.2.0,1.2.0]",
        "lazy");
View Full Code Here

  }
 
  @Test
  public void testIUVersionContentAssist2() {
    try {
      ContentAssistProcessorTestBuilder _newBuilder = this.newBuilder();
      StringConcatenation _builder = new StringConcatenation();
      _builder.append("target \"TPName\"");
      _builder.newLine();
      _builder.append("location \"location3\" {");
      _builder.newLine();
      _builder.append("\t");
      _builder.append("org.iu1 ");
      _builder.newLine();
      _builder.append("}");
      _builder.newLine();
      ContentAssistProcessorTestBuilder _append = _newBuilder.append(_builder.toString());
      ContentAssistProcessorTestBuilder _cursorBack = _append.cursorBack(3);
      _cursorBack.assertText(
        "[1.2.0,1.2.1)",
        "[1.2.0,1.3.0)",
        "[1.2.0,2.0.0)",
        "[1.2.0,1.2.0]",
        "[1.2.5,1.2.6)",
View Full Code Here

  }
 
  @Test
  public void testIUVersionContentAssist3() {
    try {
      ContentAssistProcessorTestBuilder _newBuilder = this.newBuilder();
      StringConcatenation _builder = new StringConcatenation();
      _builder.append("target \"TPName\"");
      _builder.newLine();
      _builder.append("location \"location2\" {");
      _builder.newLine();
      _builder.append("\t");
      _builder.append("org.iu1");
      _builder.newLine();
      _builder.append("\t");
      _builder.newLine();
      _builder.append("}");
      _builder.newLine();
      ContentAssistProcessorTestBuilder _append = _newBuilder.append(_builder.toString());
      ContentAssistProcessorTestBuilder _cursorBack = _append.cursorBack(3);
      _cursorBack.assertText(
        "org.iu2");
    } catch (Throwable _e) {
      throw Exceptions.sneakyThrow(_e);
    }
  }
View Full Code Here

  }
 
  @Test
  public void testIUVersionContentAssist4() {
    try {
      ContentAssistProcessorTestBuilder _newBuilder = this.newBuilder();
      StringConcatenation _builder = new StringConcatenation();
      _builder.append("target \"TPName\"");
      _builder.newLine();
      _builder.append("location \"location2\" {");
      _builder.newLine();
      _builder.append("\t");
      _builder.append("org.iu1");
      _builder.newLine();
      _builder.append("\t");
      _builder.append("org.iu2");
      _builder.newLine();
      _builder.append("\t");
      _builder.newLine();
      _builder.append("}");
      _builder.newLine();
      ContentAssistProcessorTestBuilder _append = _newBuilder.append(_builder.toString());
      ContentAssistProcessorTestBuilder _cursorBack = _append.cursorBack(3);
      _cursorBack.assertText("");
    } catch (Throwable _e) {
      throw Exceptions.sneakyThrow(_e);
    }
  }
View Full Code Here

  }
 
  @Test
  public void testIUVersionContentAssist5() {
    try {
      ContentAssistProcessorTestBuilder _newBuilder = this.newBuilder();
      StringConcatenation _builder = new StringConcatenation();
      _builder.append("target \"TPName\"");
      _builder.newLine();
      _builder.append("location \"location1\" {");
      _builder.newLine();
      _builder.append("\t");
      _builder.append("org.iu1");
      _builder.newLine();
      _builder.append("}");
      _builder.newLine();
      ContentAssistProcessorTestBuilder _append = _newBuilder.append(_builder.toString());
      ContentAssistProcessorTestBuilder _cursorBack = _append.cursorBack(3);
      _cursorBack.assertText(
        " [1.2.0,1.2.1)",
        " [1.2.0,1.3.0)",
        " [1.2.0,2.0.0)",
        " [1.2.0,1.2.0]",
        " lazy");
View Full Code Here

  }
 
  @Test
  public void testLocationURIAndID1ContentAssist() {
    try {
      ContentAssistProcessorTestBuilder _newBuilder = this.newBuilder();
      StringConcatenation _builder = new StringConcatenation();
      _builder.append("target \"TPName\"");
      _builder.newLine();
      _builder.append("location ");
      ContentAssistProcessorTestBuilder _append = _newBuilder.append(_builder.toString());
      _append.assertText(
        "\"http://p2.repository.url/\" ",
        "locationID ");
    } catch (Throwable _e) {
      throw Exceptions.sneakyThrow(_e);
    }
View Full Code Here

  }
 
  @Test
  public void testLocationURIAndID2ContentAssist() {
    try {
      ContentAssistProcessorTestBuilder _newBuilder = this.newBuilder();
      StringConcatenation _builder = new StringConcatenation();
      _builder.append("target \"TPName\"");
      _builder.newLine();
      _builder.append("location");
      ContentAssistProcessorTestBuilder _append = _newBuilder.append(_builder.toString());
      StringConcatenation _builder_1 = new StringConcatenation();
      _builder_1.append("location \"http://p2.repository.url/\" {");
      _builder_1.newLine();
      _builder_1.append("\t");
      _builder_1.newLine();
      _builder_1.append("}");
      _append.assertText(
        " \"http://p2.repository.url/\" ",
        " locationID ", _builder_1.toString());
    } catch (Throwable _e) {
      throw Exceptions.sneakyThrow(_e);
    }
View Full Code Here

TOP

Related Classes of org.eclipse.xtext.junit4.ui.ContentAssistProcessorTestBuilder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.