@@ -44,13 +44,13 @@ private static String getTextFileContent(String path)
4444 }
4545
4646 @ Test
47- public void testReader ()
47+ public void testArchive ()
4848 throws JNIKiwixException , IOException , ZimFileFormatException {
4949 Archive archive = new Archive ("small.zim" );
5050 // test the zim file main page title
5151 assertEquals ("Test ZIM file" , archive .getMainEntry ().getTitle ());
5252 // test zim file size
53- assertEquals (3 , archive .getFilesize () / 1024 ); // The file size is in KiB
53+ assertEquals (4070 , archive .getFilesize ()); // The file size is in KiB
5454 // test zim file main url
5555 assertEquals ("A/main.html" , archive .getMainEntry ().getPath ());
5656 // test zim file content
@@ -73,14 +73,14 @@ public void testReader()
7373 }
7474
7575 @ Test
76- public void testReaderByFd ()
76+ public void testArchiveByFd ()
7777 throws JNIKiwixException , IOException , ZimFileFormatException {
7878 FileInputStream fis = new FileInputStream ("small.zim" );
7979 Archive archive = new Archive (fis .getFD ());
8080 // test the zim file main page title
8181 assertEquals ("Test ZIM file" , archive .getMainEntry ().getTitle ());
8282 // test zim file size
83- assertEquals (3 , archive .getFilesize () / 1024 ); // The file size is in KiB
83+ assertEquals (4070 , archive .getFilesize ()); // The file size is in KiB
8484 // test zim file main url
8585 assertEquals ("A/main.html" , archive .getMainEntry ().getPath ());
8686 // test zim file content
@@ -103,15 +103,15 @@ public void testReaderByFd()
103103 }
104104
105105 @ Test
106- public void testReaderWithAnEmbeddedArchive ()
106+ public void testArchiveWithAnEmbeddedArchive ()
107107 throws JNIKiwixException , IOException , ZimFileFormatException {
108108 File plainArchive = new File ("small.zim" );
109109 FileInputStream fis = new FileInputStream ("small.zim.embedded" );
110110 Archive archive = new Archive (fis .getFD (), 8 , plainArchive .length ());
111111 // test the zim file main page title
112112 assertEquals ("Test ZIM file" , archive .getMainEntry ().getTitle ());
113113 // test zim file size
114- assertEquals (3 , archive .getFilesize () / 1024 ); // The file size is in KiB
114+ assertEquals (4070 , archive .getFilesize ()); // The file size is in KiB
115115 // test zim file main url
116116 assertEquals ("A/main.html" , archive .getMainEntry ().getPath ());
117117 // test zim file content
0 commit comments