mirror of
https://github.com/kiwix/java-libkiwix.git
synced 2025-09-08 14:45:54 -04:00
Added new test cases for bookmark
This commit is contained in:
parent
57dd239b9a
commit
4ee1e7fddf
@ -186,8 +186,12 @@ public class test {
|
||||
Bookmark[] bookmarkArray = lib.getBookmarks(true);
|
||||
assertEquals(1, bookmarkArray.length);
|
||||
bookmark = bookmarkArray[0];
|
||||
// test bookmark title
|
||||
assertEquals(bookmark.getTitle(), book.getTitle());
|
||||
// remove bookmark from library
|
||||
assertEquals(true, lib.removeBookmark(bookmark.getBookId(), bookmark.getUrl()));
|
||||
lib.removeBookmark(bookmark.getBookId(), bookmark.getUrl());
|
||||
bookmarkArray = lib.getBookmarks(true);
|
||||
assertEquals(0, bookmarkArray.length);
|
||||
}
|
||||
|
||||
@Test
|
||||
|
Loading…
x
Reference in New Issue
Block a user