Esempio n. 1
0
 public void testGetResourceFiles2() throws Exception {
   loadContentPackage1();
   // Should be empty if using an Item
   Element element =
       cpCore.getElementByIdentifier(cpCore.getRootManifestElement(), CP_Package1.ITEM1_ID);
   File[] files = cpCore.getResourceFiles(element);
   assertEquals("File list should be empty", 0, files.length);
 }
Esempio n. 2
0
 public void testGetResourceFiles1() throws Exception {
   loadContentPackage1();
   // Should not be empty
   Element element = cpCore.getRootManifestElement();
   File[] files = cpCore.getResourceFiles(element);
   assertTrue("File list should not be empty", files.length > 0);
   for (int i = 0; i < files.length; i++) {
     assertTrue("File should exist", files[i].exists());
   }
 }