File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -198,13 +198,8 @@ public void testArchiveWithAnEmbeddedArchive()
198198 archive .dispose ();
199199 }
200200
201- @ Test
202- public void testLibrary ()
201+ private void testLibrary (TestLibrary lib )
203202 throws IOException {
204- TestLibrary lib = new TestLibrary ();
205- TestManager manager = new TestManager (lib );
206- String content = getTextFileContent ("catalog.xml" );
207- manager .readOpds (content , "http://localhost" );
208203 assertEquals (lib .getBookCount (true , true ), 1 );
209204 String [] bookIds = lib .getBooksIds ();
210205 assertEquals (bookIds .length , 1 );
@@ -246,6 +241,15 @@ public void testLibrary()
246241 assertEquals (bookIds .length , 0 );
247242 }
248243
244+ @ Test
245+ public void testLibraryOPDS () throws IOException {
246+ TestLibrary lib = new TestLibrary ();
247+ TestManager manager = new TestManager (lib );
248+ String content = getTextFileContent ("catalog.xml" );
249+ manager .readOpds (content , "http://localhost" );
250+ testLibrary (lib );
251+ }
252+
249253 @ Test
250254 public void testServer () throws ZimFileFormatException , JNIKiwixException {
251255 TestArchive archive = new TestArchive ("small.zim" );
You can’t perform that action at this time.
0 commit comments