394395396397398399400401402403404
xsb.pop("method-selectors"); } xsb.pop("suite"); return xsb.toXML(); } /** * {@inheritDoc} */
393394395396397398399400401402403
xsb.pop("classes"); } xsb.pop("test"); return xsb.toXML(); } @Override public String toString() { StringBuffer result = new StringBuffer("[Test: \"" + m_name + "\"")
130131132133134135136137138139140
else { xsb.addEmptyElement("class", pro); } return xsb.toXML(); } /** * Clone an XmlClass by copying all its components.
105106107108109110111112
xsb.addEmptyElement("exclude", excludeProp); } xsb.pop("package"); return xsb.toXML(); } }
148149150151152153154155156157158
106107108109110111112113
422423424425426427428429430431432
979899100101102103104
throw new TestNGException("Invalid Method Selector: found neither class name nor language"); } xsb.pop("method-selector"); return xsb.toXML(); } }
411412413414415416417418419420421
93949596979899100101102103
xsb.pop("classes"); xsb.pop("test"); xsb.pop("suite"); Utils.writeFile(m_outDir.getAbsolutePath(), "testng.xml", xsb.toXML()); } private boolean isTestFile(File f) { return f.getName().endsWith(".java"); }