public void checkProgrammaticSuitesFails() {
XmlSuite xmlSuite1 = new XmlSuite();
xmlSuite1.setName("SanityCheckSuite");
{
XmlTest result = new XmlTest(xmlSuite1);
result.getXmlClasses().add(new XmlClass(SampleTest1.class.getCanonicalName()));
}
XmlSuite xmlSuite2 = new XmlSuite();
xmlSuite2.setName("SanityCheckSuite");
{
XmlTest result = new XmlTest(xmlSuite2);
result.getXmlClasses().add(new XmlClass(SampleTest2.class.getCanonicalName()));
}
TestNG tng = create();
tng.setXmlSuites(Arrays.asList(xmlSuite1, xmlSuite2));
tng.run();