Examples of XdocFile


Examples of org.eclipse.xtext.xdoc.xdoc.XdocFile

  }
 
  @Test
  public void testImg() {
    try {
      XdocFile _docFromFile = this._parseHelperExtensions.getDocFromFile((ParserTestConstants.TEST_FILE_DIR + "imgTest.xdoc"));
      this._validationTestHelper.assertNoErrors(_docFromFile);
    } catch (Throwable _e) {
      throw Exceptions.sneakyThrow(_e);
    }
  }
View Full Code Here

Examples of org.eclipse.xtext.xdoc.xdoc.XdocFile

  }
 
  @Test
  public void testUL() {
    try {
      final XdocFile file = this._parseHelperExtensions.getDocFromFile((ParserTestConstants.TEST_FILE_DIR + "ulTest.xdoc"));
      AbstractSection _mainSection = file.getMainSection();
      final Chapter chapter = ((Chapter) _mainSection);
      EList<TextOrMarkup> contents = chapter.getContents();
      int _size = contents.size();
      Assert.assertEquals(1, _size);
      TextOrMarkup textOrMarkup = IterableExtensions.<TextOrMarkup>head(contents);
View Full Code Here

Examples of org.eclipse.xtext.xdoc.xdoc.XdocFile

  }
 
  @Test
  public void testOL() {
    try {
      final XdocFile file = this._parseHelperExtensions.getDocFromFile((ParserTestConstants.TEST_FILE_DIR + "olTest.xdoc"));
      AbstractSection _mainSection = file.getMainSection();
      final Chapter chapter = ((Chapter) _mainSection);
      EList<TextOrMarkup> contents = chapter.getContents();
      int _size = contents.size();
      Assert.assertEquals(1, _size);
      TextOrMarkup textOrMarkup = IterableExtensions.<TextOrMarkup>head(contents);
View Full Code Here

Examples of org.eclipse.xtext.xdoc.xdoc.XdocFile

      _builder.append(ParserTestConstants.CLOSE_BRACKET, "");
      _builder.append("td[]");
      _builder.append(ParserTestConstants.CLOSE_BRACKET, "");
      _builder.append(ParserTestConstants.CLOSE_BRACKET, "");
      _builder.newLineIfNotEmpty();
      final XdocFile file = this._parseHelperExtensions.parse(_builder);
      AbstractSection _mainSection = file.getMainSection();
      final EList<TextOrMarkup> textOrMarkup = _mainSection.getContents();
      int _size = textOrMarkup.size();
      Assert.assertEquals(1, _size);
      TextOrMarkup _head = IterableExtensions.<TextOrMarkup>head(textOrMarkup);
      EList<EObject> _contents = _head.getContents();
View Full Code Here

Examples of org.eclipse.xtext.xdoc.xdoc.XdocFile

      _builder.newLineIfNotEmpty();
      _builder.append("chapter[foo]");
      _builder.newLine();
      _builder.newLine();
      _builder.newLine();
      final XdocFile file = this._parseHelperExtensions.parse(_builder);
      AbstractSection _mainSection = file.getMainSection();
      final Document doc = ((Document) _mainSection);
      final EList<LangDef> defs = doc.getLangDefs();
      int _size = defs.size();
      Assert.assertEquals(1, _size);
      final LangDef def = IterableExtensions.<LangDef>head(defs);
View Full Code Here

Examples of org.eclipse.xtext.xdoc.xdoc.XdocFile

  }
 
  @Test
  public void testFullSectionHirarchy() {
    try {
      final XdocFile file = this._parseHelperExtensions.getDocFromFile((ParserTestConstants.TEST_FILE_DIR + "downToSection4Test.xdoc"));
      AbstractSection _mainSection = file.getMainSection();
      final Document doc = ((Document) _mainSection);
      TextOrMarkup _title = doc.getTitle();
      EList<EObject> _contents = _title.getContents();
      int _size = _contents.size();
      Assert.assertEquals(1, _size);
View Full Code Here

Examples of org.eclipse.xtext.xdoc.xdoc.XdocFile

    return URLDecoder.decode(naming.getResourceURL(id));
  }

  @Override
  public void testARef() throws Exception {
    XdocFile file = pTest.getDocFromFile(ParserTest.TEST_FILE_DIR + "aRefTest.xdoc");
    generate(file.getMainSection());
    assertGenerated(file.getMainSection());
    validate("aRefTest.html", name(file.getMainSection()));
  }
View Full Code Here

Examples of org.eclipse.xtext.xdoc.xdoc.XdocFile

    validate("aRefTest.html", name(file.getMainSection()));
  }

  @Override
  public void testCodeRef() throws Exception {
    XdocFile file = pTest.getDocFromFile(ParserTest.TEST_FILE_DIR + "codeRef.xdoc");
    generate(file.getMainSection());
    assertGenerated(file.getMainSection());
    validate("codeRefTest.html", name(file.getMainSection()));
  }
View Full Code Here

Examples of org.eclipse.xtext.xdoc.xdoc.XdocFile

  @Inject
  private EclipseResourceFileSystemAccess2 fsa;
 
  @Test
  public void testRef() {
    XdocFile _doc = this.getDoc("aRefTest.xdoc");
    Resource _eResource = _doc.eResource();
    this._eclipseHelpGenerator.doGenerate(_eResource, this.fsa);
    File _targetFile = this.getTargetFile("aRefTest.html");
    boolean _exists = _targetFile.exists();
    Assert.assertTrue(_exists);
  }
View Full Code Here

Examples of org.eclipse.xtext.xdoc.xdoc.XdocFile

  }
 
  public Pair<String, Integer> testGenCode() throws Exception {
    Pair<String, Integer> _xblockexpression = null;
    {
      final XdocFile file = this.getDoc((ParserTestConstants.TEST_FILE_DIR + "codeTest.xdoc"));
      AbstractSection _mainSection = file.getMainSection();
      final Document doc = ((Document) _mainSection);
      this.stateFullGen.generate(doc);
      _xblockexpression = Pair.<String, Integer>of("foo", Integer.valueOf(3));
    }
    return _xblockexpression;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.