예제 #1
0
  private void executeTestCase026() {
    try {
      Properties viewProperties = new Properties();
      viewProperties.put("ICON-FILE", "images/tick.png");
      viewProperties.put("TREE-NAME", "MKG");
      viewProperties.put("ID", "Events");
      viewProperties.put("PARENT", "Fault");
      Properties panelProperties = new Properties();
      panelProperties.put("PARENT", "Maps");

      boolean add26 =
          dbxmlutil.addNode(
              "newNode_26", "LEVEL-1", "All", "Fault", "Default", viewProperties, panelProperties);
      boolean node261 =
          dbxmlutil.modifyNode("newNode", "All", "Default", viewProperties, panelProperties);

      boolean remove26 = dbxmlutil.removeNode("newNode_26", "All", "Fault", true);
      boolean node26 =
          dbxmlutil.modifyNode("newNode", "All", "Default", viewProperties, panelProperties);

      // System.out.println("node261 , node26"+node261+node26);
      if (node26) {
        System.out.println("CATS-JCF-API-DXU-026   ---> FAILED");
      } else {
        System.out.println("CATS-JCF-API-DXU-026   ---> PASSED");
      }
    } catch (Exception e) {
      // e.printStackTrace();
    }
  }
예제 #2
0
  private void executeTestCase085() {
    try {
      Properties viewProperties = new Properties();
      viewProperties.put("ICON-FILE", "images/AdventNet.jpg");
      viewProperties.put("TREE-NAME", "MKG");
      viewProperties.put("ID", "Map_Val22");
      // viewProperties.put("PARENT","Fault");
      Properties panelProperties = new Properties();
      // panelProperties.put("PARENT","Fault");

      boolean add1 =
          dbxmlutil.modifyNode("Map_Val22", "All", "Default", viewProperties, panelProperties);

      if (add1) {
        System.out.println("CATS-JCF-API-DXU-085   ---> PASSED");
      } else {
        System.out.println("CATS-JCF-API-DXU-085   ---> FAILED");
      }

    } catch (Exception e) {
      e.printStackTrace();
    }
  }