Search in sources :

Example 1 with BookCollection

use of org.geometerplus.fbreader.collection.BookCollection in project FBReaderJ by geometer.

the class TestBookCollection method test.

public void test() {
    BookCollection bc = new BookCollection();
    ArrayList authors = bc.authors();
    for (int i = 0; i < authors.size(); i++) {
        System.out.println(authors.get(i));
    }
}
Also used : BookCollection(org.geometerplus.fbreader.collection.BookCollection) ArrayList(java.util.ArrayList)

Example 2 with BookCollection

use of org.geometerplus.fbreader.collection.BookCollection in project FBReaderJ by geometer.

the class TestBookCollection method testExternalBook.

public void testExternalBook() {
    BookDescription bd = BookDescription.getDescription(myDirectory + "/" + filename);
    assertTrue(bd != null);
    BookCollection bc = new BookCollection();
    bc.isBookExternal(bd);
    ArrayList authors = bc.authors();
    for (int i = 0; i < authors.size(); i++) {
        System.out.println(authors.get(i));
    }
}
Also used : BookCollection(org.geometerplus.fbreader.collection.BookCollection) ArrayList(java.util.ArrayList) BookDescription(org.geometerplus.fbreader.description.BookDescription)

Aggregations

ArrayList (java.util.ArrayList)2 BookCollection (org.geometerplus.fbreader.collection.BookCollection)2 BookDescription (org.geometerplus.fbreader.description.BookDescription)1