425426427428429430431432433434435
if (null != getXmlClasses() && !getXmlClasses().isEmpty()) { xsb.push("classes"); for (XmlClass cls : getXmlClasses()) { xsb.getStringBuffer().append(cls.toXml(indent + " ")); } xsb.pop("classes"); } xsb.pop("test"); return xsb.toXML();
428429430431432433434435436437438
xsb.getStringBuffer().append(cls.toXml(indent + " ")); } xsb.pop("classes"); } xsb.pop("test"); return xsb.toXML(); } @Override
480481482483484485486487488489490
for (String listenerName: m_listeners) { Properties listenerProps = new Properties(); listenerProps.setProperty("class-name", listenerName); xsb.addEmptyElement("listener", listenerProps); } xsb.pop("listeners"); } if (null != getXmlPackages() && !getXmlPackages().isEmpty()) { xsb.push("packages");
490491492493494495496497498499500
for (XmlPackage pack : getXmlPackages()) { xsb.getStringBuffer().append(pack.toXml(" ")); } xsb.pop("packages"); } if (null != getMethodSelectors() && !getMethodSelectors().isEmpty()) { xsb.push("method-selectors"); for (XmlMethodSelector selector : getMethodSelectors()) {
499500501502503504505506507508509
xsb.push("method-selectors"); for (XmlMethodSelector selector : getMethodSelectors()) { xsb.getStringBuffer().append(selector.toXml(" ")); } xsb.pop("method-selectors"); } List<String> suiteFiles = getSuiteFiles(); if (suiteFiles.size() > 0) { xsb.push("suite-files");
510511512513514515516517518519520
for (String sf : suiteFiles) { Properties prop = new Properties(); prop.setProperty("path", sf); xsb.addEmptyElement("suite-file", prop); } xsb.pop("suite-files"); } for (XmlTest test : getTests()) { xsb.getStringBuffer().append(test.toXml(" ")); }
517518519520521522523524525526527
for (XmlTest test : getTests()) { xsb.getStringBuffer().append(test.toXml(" ")); } xsb.pop("suite"); return xsb.toXML(); } /**
8990919293949596979899
Properties p = new Properties(); p.setProperty("name", className); xsb.addEmptyElement("class", p); } xsb.pop("classes"); xsb.pop("test"); xsb.pop("suite"); Utils.writeFile(m_outDir.getAbsolutePath(), "testng.xml", xsb.toXML()); }
90919293949596979899100
p.setProperty("name", className); xsb.addEmptyElement("class", p); } xsb.pop("classes"); xsb.pop("test"); xsb.pop("suite"); Utils.writeFile(m_outDir.getAbsolutePath(), "testng.xml", xsb.toXML()); }
919293949596979899100101
xsb.addEmptyElement("class", p); } xsb.pop("classes"); xsb.pop("test"); xsb.pop("suite"); Utils.writeFile(m_outDir.getAbsolutePath(), "testng.xml", xsb.toXML()); } private boolean isTestFile(File f) {