Package org.eclipse.xtext.xdoc.xdoc

Examples of org.eclipse.xtext.xdoc.xdoc.AbstractSection


 
  @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


 
  @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

      _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();
      EObject _head_1 = IterableExtensions.<EObject>head(_contents);
View Full Code Here

      _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

 
  @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

TOP

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

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.