cbeust/testng — pull request #307 by VladRassokhin (2012-12-03 16:46:45+00:00)
Title: Add suite names sanity check

Before running, TestNG will check that there no two or more suites with same names, because two suites with same names may cause invalid behavior (see #302 for sample).

Added new sanity check into `org.testng.TestNG#sanityCheck()` and check for clashing in `org.testng.internal.SuiteRunnerMap#put(XmlSuite xmlSuite, ISuite suite)`

Also some tests added (see `test.sanitycheck.CheckSuiteNamesTest`).

Also `test.sanitycheck.CheckTestNamesTest.checkNoErrorWtihChildSuites` now fails because has two suites with same name. Also without that check it produces 6 test runs instead of 4.