Exemplo n.º 1
0
 @Test
 public void testGetDataKey() throws Exception {
   for (int i = 0; i < bibles.length; i++) {
     Book bible = bibles[i];
     Key key = bible.getKey("Gen 1:1");
     BookData data = new BookData(bible, key);
     Assert.assertNotNull(data);
   }
 }
Exemplo n.º 2
0
  @Before
  public void setUp() throws Exception {
    List<Book> lbmds = Books.installed().getBooks(BookFilters.getOnlyBibles());
    int numBibles = lbmds.size();
    bibles = new Book[numBibles];
    bmds = new BookMetaData[numBibles];
    gen11 = new Key[numBibles];

    int i = 0;
    for (Book book : lbmds) {
      bibles[i] = book;
      bmds[i] = book.getBookMetaData();
      gen11[i] = book.getKey("Gen 1:1");
      i++;
    }
  }