Package org.eclipse.xtext.xdoc.xdoc

Examples of org.eclipse.xtext.xdoc.xdoc.Chapter


  @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);
      EList<EObject> _contents = textOrMarkup.getContents();
      int _size_1 = _contents.size();
View Full Code Here


      Assert.assertEquals("foo", _text);
      EList<Chapter> _chapters = doc.getChapters();
      int _size_1 = _chapters.size();
      Assert.assertEquals(1, _size_1);
      EList<Chapter> _chapters_1 = doc.getChapters();
      final Chapter chapter = IterableExtensions.<Chapter>head(_chapters_1);
      TextOrMarkup _title_2 = chapter.getTitle();
      EList<EObject> _contents_2 = _title_2.getContents();
      int _size_2 = _contents_2.size();
      Assert.assertEquals(1, _size_2);
      TextOrMarkup _title_3 = chapter.getTitle();
      EList<EObject> _contents_3 = _title_3.getContents();
      EObject _head_1 = IterableExtensions.<EObject>head(_contents_3);
      textPart = ((TextPart) _head_1);
      String _text_1 = textPart.getText();
      Assert.assertEquals("bar", _text_1);
      EList<Section> _subSections = chapter.getSubSections();
      int _size_3 = _subSections.size();
      Assert.assertEquals(1, _size_3);
      EList<Section> _subSections_1 = chapter.getSubSections();
      final Section section = IterableExtensions.<Section>head(_subSections_1);
      TextOrMarkup _title_4 = section.getTitle();
      EList<EObject> _contents_4 = _title_4.getContents();
      int _size_4 = _contents_4.size();
      Assert.assertEquals(1, _size_4);
View Full Code Here

TOP

Related Classes of org.eclipse.xtext.xdoc.xdoc.Chapter

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.