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(); } }
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(); } }
private void executeTestCase084() { try { Properties viewProperties = new Properties(); viewProperties.put("ICON-FILE", "images/tick.png"); viewProperties.put("TREE-NAME", "MKG"); viewProperties.put("ID", "Maps_Val22"); viewProperties.put("PARENT", "Maps"); Properties panelProperties = new Properties(); panelProperties.put("PARENT", "Maps"); boolean add1 = dbxmlutil.addNode( "Maps_Val22", "LEVEL-1", "All", "Maps", "Default", viewProperties, panelProperties); if (add1) { System.out.println("CATS-JCF-API-DXU-084 ---> PASSED"); } else { System.out.println("CATS-JCF-API-DXU-084 ---> FAILED"); } } catch (Exception e) { e.printStackTrace(); } }