Exemplo n.º 1
0
  private void executeTestCase012() {
    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");

      // adding newNode
      boolean add1 =
          dbxmlutil.addNode(
              "newNode_12", "LEVEL-1", "All", "Fault", "Default", viewProperties, panelProperties);
      // removing newNode
      boolean remove = dbxmlutil.removeNode("newNode_12", "All", "Fault", true);

      // readding the newNode
      boolean add2 =
          dbxmlutil.addNode(
              "newNode_12", "LEVEL-1", "All", "Fault", "Default", viewProperties, panelProperties);
      if (add2 == true) {
        System.out.println("CATS-JCF-API-DXU-012   ---> PASSED");
      } else {
        System.out.println("CATS-JCF-API-DXU-012   ---> FAILED");
      }
      // removing newNode
      boolean remove1 = dbxmlutil.removeNode("newNode_12", "All", "Fault", true);
    } catch (Exception e) {
      // e.printStackTrace();
    }
  }
Exemplo n.º 2
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();
    }
  }
Exemplo n.º 3
0
  private void executeTestCase087() {
    try {
      boolean add1 = dbxmlutil.removeNode("Fault", "root", "Default", true);

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

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