Beispiel #1
0
 public void testGetParameters4() throws Exception {
   loadContentPackage1();
   // Check for #
   Element element = new Element("test");
   element.setAttribute(CP_Core.PARAMETERS, "#someParams");
   assertEquals("Parameters wrong", "#someParams", cpCore.getParameters(element));
 }
Beispiel #2
0
 public void testGetParameters2() throws Exception {
   loadContentPackage1();
   // Should be null
   Element element = cpCore.getRootManifestElement();
   assertNull("Parameters should be null", cpCore.getParameters(element));
 }
Beispiel #3
0
 public void testGetParameters1() throws Exception {
   loadContentPackage1();
   Element element =
       cpCore.getElementByIdentifier(cpCore.getRootManifestElement(), CP_Package1.ITEM1_ID);
   assertEquals("Parameters wrong", "?someParams", cpCore.getParameters(element));
 }