@@ -57,7 +57,7 @@ public void testReader()
5757 byte [] faviconData = getFileContent ("small_zimfile_data/favicon.png" );
5858 assertEquals (faviconData .length , archive .getEntryByPath ("I/favicon.png" ).getItem (true ).getSize ());
5959 c = archive .getEntryByPath ("I/favicon.png" ).getItem (true ).getData ().getData ();
60- // assertEquals(new String(faviconData), c);
60+ assertEquals (new String (faviconData ), c );
6161
6262 DirectAccessInfo dai = archive .getEntryByPath ("I/favicon.png" ).getItem (true ).getDirectAccessInformation ();
6363 assertNotEquals ("" , dai .filename );
@@ -75,12 +75,12 @@ public void testReaderByFd()
7575 assertEquals ("A/main.html" , archive .getMainEntry ().getPath ());
7676 String s = getTextFileContent ("small_zimfile_data/main.html" );
7777 String c = archive .getEntryByPath ("A/main.html" ).getItem (true ).getData ().getData ();
78- // assertEquals(s, c);
78+ assertEquals (s , c );
7979
8080 byte [] faviconData = getFileContent ("small_zimfile_data/favicon.png" );
8181 assertEquals (faviconData .length , archive .getEntryByPath ("I/favicon.png" ).getItem (true ).getSize ());
8282 c = archive .getEntryByPath ("I/favicon.png" ).getItem (true ).getData ().getData ();
83- // assertEquals(new String(faviconData), c);
83+ assertEquals (new String (faviconData ), c );
8484
8585 DirectAccessInfo dai = archive .getEntryByPath ("I/favicon.png" ).getItem (true ).getDirectAccessInformation ();
8686 assertNotEquals ("" , dai .filename );
@@ -99,12 +99,12 @@ public void testReaderWithAnEmbeddedArchive()
9999 assertEquals ("A/main.html" , archive .getMainEntry ().getPath ());
100100 String s = getTextFileContent ("small_zimfile_data/main.html" );
101101 String c = archive .getEntryByPath ("A/main.html" ).getItem (true ).getData ().getData ();
102- // assertEquals(s, c);
102+ assertEquals (s , c );
103103
104104 byte [] faviconData = getFileContent ("small_zimfile_data/favicon.png" );
105105 assertEquals (faviconData .length , archive .getEntryByPath ("I/favicon.png" ).getItem (true ).getSize ());
106106 c = archive .getEntryByPath ("I/favicon.png" ).getItem (true ).getData ().getData ();
107- // assertEquals(new String(faviconData), c);
107+ assertEquals (new String (faviconData ), c );
108108
109109 DirectAccessInfo dai = archive .getEntryByPath ("I/favicon.png" ).getItem (true ).getDirectAccessInformation ();
110110 assertNotEquals ("" , dai .filename );
@@ -123,11 +123,11 @@ public void testLibrary()
123123 assertEquals (lib .getBookCount (true , true ), 1 );
124124 String [] bookIds = lib .getBooksIds ();
125125 assertEquals (bookIds .length , 1 );
126- /* Book book = lib.getBookById(bookIds[0]);
126+ Book book = lib .getBookById (bookIds [0 ]);
127127 assertEquals (book .getTitle (), "Test ZIM file" );
128128 assertEquals (book .getTags (), "unit;test" );
129129 assertEquals (book .getIllustration (48 ).url (), "http://localhost/meta?name=favicon&content=small" );
130- assertEquals(book.getUrl(), "http://localhost/small.zim");*/
130+ assertEquals (book .getUrl (), "http://localhost/small.zim" );
131131 }
132132
133133 static
0 commit comments