@Test public void testLoad() throws Exception { JrdsDocument d = Tools.parseString(goodSumSXml); JrdsElement je = d.getRootElement(); je.addElement("element", "name=DummyHost/DummyProbe"); HostsList hl = new HostsList(); Sum s = doSum(d, hl); Document sumDocument = s.getGraphDesc().dumpAsXml(); logger.trace(sumDocument); }
@Test public void testRoles() throws Exception { JrdsDocument d = Tools.parseString(goodSumSXml); JrdsElement je = d.getRootElement(); je.addElement("element", "name=DummyHost/DummyProbe"); je.addElement("role").setTextContent("role1"); HostsList hl = new HostsList(); Sum s = doSum(d, hl); ACL acl = s.getACL(); Assert.assertEquals("Not an role ACL", RolesACL.class, acl.getClass()); }