Skip to content

Commit 4ee1e7f

Browse files
author
MohitMaliFtechiz
committed
Added new test cases for bookmark
1 parent 57dd239 commit 4ee1e7f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/src/test/test.java

+5-1
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,12 @@ public void testBookMark() throws ZimFileFormatException, JNIKiwixException {
186186
Bookmark[] bookmarkArray = lib.getBookmarks(true);
187187
assertEquals(1, bookmarkArray.length);
188188
bookmark = bookmarkArray[0];
189+
// test bookmark title
190+
assertEquals(bookmark.getTitle(), book.getTitle());
189191
// remove bookmark from library
190-
assertEquals(true, lib.removeBookmark(bookmark.getBookId(), bookmark.getUrl()));
192+
lib.removeBookmark(bookmark.getBookId(), bookmark.getUrl());
193+
bookmarkArray = lib.getBookmarks(true);
194+
assertEquals(0, bookmarkArray.length);
191195
}
192196

193197
@Test

0 commit comments

Comments
 (0)