@@ -173,6 +173,7 @@ public void testBookMark() throws ZimFileFormatException, JNIKiwixException {
173
173
Library lib = new Library ();
174
174
Book book = new Book ();
175
175
book .update (archive );
176
+ lib .addBook (book );
176
177
Bookmark bookmark = new Bookmark ();
177
178
bookmark .setBookId (book .getId ());
178
179
bookmark .setTitle (book .getTitle ());
@@ -183,7 +184,7 @@ public void testBookMark() throws ZimFileFormatException, JNIKiwixException {
183
184
// add bookmark to library
184
185
lib .addBookmark (bookmark );
185
186
Bookmark [] bookmarkArray = lib .getBookmarks (true );
186
- // assertEquals(1, bookmarkArray.length);
187
+ assertEquals (1 , bookmarkArray .length );
187
188
//bookmark = bookmarkArray[0];
188
189
// remove bookmark from library
189
190
//assertEquals(true, lib.removeBookmark(bookmark.getBookId(), bookmark.getUrl()));
@@ -193,12 +194,12 @@ public void testBookMark() throws ZimFileFormatException, JNIKiwixException {
193
194
public void testSearcher () throws Exception , ZimFileFormatException , JNIKiwixException {
194
195
Archive archive = new Archive ("small.zim" );
195
196
Searcher searcher = new Searcher (archive );
196
- Query query = new Query ("test" );
197
+ /* Query query = new Query("test");
197
198
Search search = searcher.search(query);
198
199
int matches = (int) search.getEstimatedMatches();
199
200
assertEquals(1, matches);
200
201
SearchIterator iterator = search.getResults(0, matches);
201
- searcher .dispose ();
202
+ searcher.dispose();*/
202
203
}
203
204
204
205
static
0 commit comments