Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
JUnit Core 1.0.6
-
None
Description
RequestParser#acceptTestName(String) checks if the test-class name starts with the relevant URL path segment. This is desirable when listing test-classes restricted by java package names. However, the logic also allows inner classes to pass through.
This lenient check in combination with the TeleporterRule (actually ClientSideTeleporter#buildTestBundle) setting Sling-Test-Regexp to the fully qualified class-name of the test class followed by a wildcard (".*") causes inner classes of test-classes to be available as tests and their execution is also attempted (which most likely fails).