Search in sources :

Example 1 with ContentsModel

use of org.geometerplus.fbreader.bookmodel.ContentsModel in project FBReaderJ by geometer.

the class TestFB2Reader method testTreeParagraphRef.

public void testTreeParagraphRef() {
    BookModel bookModel = new BookModel(myDirectory + "tree1.fb2");
    new FB2Reader(bookModel).read();
    ContentsModel model = bookModel.getContentsModel();
    assertTrue(model.getReference((ZLTextTreeParagraph) model.getParagraph(0)) == 0);
}
Also used : ContentsModel(org.geometerplus.fbreader.bookmodel.ContentsModel) BookModel(org.geometerplus.fbreader.bookmodel.BookModel) FB2Reader(org.geometerplus.fbreader.formats.fb2.FB2Reader)

Aggregations

BookModel (org.geometerplus.fbreader.bookmodel.BookModel)1 ContentsModel (org.geometerplus.fbreader.bookmodel.ContentsModel)1 FB2Reader (org.geometerplus.fbreader.formats.fb2.FB2Reader)1