@@ -63,7 +63,6 @@ public void testReader()
6363 assertEquals (true , archive .hasIllustration (48 ));
6464 Item item = archive .getIllustrationItem (48 );
6565 assertEquals (faviconData .length , item .getSize ());
66- //assertEquals(new String(faviconData), item.getData().getData());
6766
6867 DirectAccessInfo dai = archive .getEntryByPath ("I/favicon.png" ).getItem (true ).getDirectAccessInformation ();
6968 assertNotEquals ("" , dai .filename );
@@ -94,7 +93,6 @@ public void testReaderByFd()
9493 assertEquals (true , archive .hasIllustration (48 ));
9594 Item item = archive .getIllustrationItem (48 );
9695 assertEquals (faviconData .length , item .getSize ());
97- //assertEquals(new String(faviconData), c);
9896
9997 DirectAccessInfo dai = archive .getEntryByPath ("I/favicon.png" ).getItem (true ).getDirectAccessInformation ();
10098 assertNotEquals ("" , dai .filename );
@@ -126,7 +124,6 @@ public void testReaderWithAnEmbeddedArchive()
126124 assertEquals (true , archive .hasIllustration (48 ));
127125 Item item = archive .getIllustrationItem (48 );
128126 assertEquals (faviconData .length , item .getSize ());
129- //assertEquals(new String(faviconData), c);
130127
131128 DirectAccessInfo dai = archive .getEntryByPath ("I/favicon.png" ).getItem (true ).getDirectAccessInformation ();
132129 assertNotEquals ("" , dai .filename );
@@ -147,11 +144,6 @@ public void testLibrary()
147144 String [] bookIds = lib .getBooksIds ();
148145 assertEquals (bookIds .length , 1 );
149146 lib .filter (new Filter ().local (true ));
150- /*Book book = lib.getBookById(bookIds[0]);
151- assertEquals(book.getTitle(), "Test ZIM file");
152- assertEquals(book.getTags(), "unit;test");
153- assertEquals(book.getIllustration(48).url(), "http://localhost/meta?name=favicon&content=small");
154- assertEquals(book.getUrl(), "http://localhost/small.zim");*/
155147 }
156148
157149 @ Test
@@ -198,12 +190,6 @@ public void testBookMark() throws ZimFileFormatException, JNIKiwixException {
198190 public void testSearcher () throws Exception , ZimFileFormatException , JNIKiwixException {
199191 Archive archive = new Archive ("small.zim" );
200192 Searcher searcher = new Searcher (archive );
201- /*Query query = new Query("test");
202- Search search = searcher.search(query);
203- int matches = (int) search.getEstimatedMatches();
204- assertEquals(1, matches);
205- SearchIterator iterator = search.getResults(0, matches);
206- searcher.dispose();*/
207193 }
208194
209195 static
0 commit comments