@@ -63,7 +63,6 @@ public void testReader()
63
63
assertEquals (true , archive .hasIllustration (48 ));
64
64
Item item = archive .getIllustrationItem (48 );
65
65
assertEquals (faviconData .length , item .getSize ());
66
- //assertEquals(new String(faviconData), item.getData().getData());
67
66
68
67
DirectAccessInfo dai = archive .getEntryByPath ("I/favicon.png" ).getItem (true ).getDirectAccessInformation ();
69
68
assertNotEquals ("" , dai .filename );
@@ -94,7 +93,6 @@ public void testReaderByFd()
94
93
assertEquals (true , archive .hasIllustration (48 ));
95
94
Item item = archive .getIllustrationItem (48 );
96
95
assertEquals (faviconData .length , item .getSize ());
97
- //assertEquals(new String(faviconData), c);
98
96
99
97
DirectAccessInfo dai = archive .getEntryByPath ("I/favicon.png" ).getItem (true ).getDirectAccessInformation ();
100
98
assertNotEquals ("" , dai .filename );
@@ -126,7 +124,6 @@ public void testReaderWithAnEmbeddedArchive()
126
124
assertEquals (true , archive .hasIllustration (48 ));
127
125
Item item = archive .getIllustrationItem (48 );
128
126
assertEquals (faviconData .length , item .getSize ());
129
- //assertEquals(new String(faviconData), c);
130
127
131
128
DirectAccessInfo dai = archive .getEntryByPath ("I/favicon.png" ).getItem (true ).getDirectAccessInformation ();
132
129
assertNotEquals ("" , dai .filename );
@@ -147,11 +144,6 @@ public void testLibrary()
147
144
String [] bookIds = lib .getBooksIds ();
148
145
assertEquals (bookIds .length , 1 );
149
146
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");*/
155
147
}
156
148
157
149
@ Test
@@ -198,12 +190,6 @@ public void testBookMark() throws ZimFileFormatException, JNIKiwixException {
198
190
public void testSearcher () throws Exception , ZimFileFormatException , JNIKiwixException {
199
191
Archive archive = new Archive ("small.zim" );
200
192
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();*/
207
193
}
208
194
209
195
static
0 commit comments