Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Duplicate
-
2.17
-
None
-
None
-
Windows/Macintosh
Description
Surefire fails with a ClassCastException when trying to run in forked mode with TestNG test suites defined via XML files. The issue occurs in ForkStarter when the code is processing the collection of tests returned by TestNGXmlTestSuite. The ForkStarter code assumes that the providers all return collections of Class<?> objects, but TestNGXmlTestSuite returns a collection of File objects.
The ForkStarter code attempts to transfer the collection of File objects from the TestNG XML provider to a collection of type List<Class<?>>, which is the cause of the ClassCastException.
I've attached a set of revisions that address this issue.
This appears to be a new incarnation of http://jira.codehaus.org/browse/SUREFIRE-463
Attachments
Attachments
Issue Links
- is duplicated by
-
SUREFIRE-1096 ClassCastException: Fork test for TestNG with xmlsuite
- Closed