Uploaded image for project: 'Maven Surefire'
  1. Maven Surefire
  2. SUREFIRE-535

surefire tries to treat nested classes, even anonymous ones, as test classes?

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.4.2
    • 2.7
    • JUnit 3.x support
    • None

    Description

      Given a top-level test class that inherits from TestCase.

      If it, internally, declares an anonymous class, or even a named child class, surefire + junit tries to run it, and fails with a warning or an initializationError. This does not happen from the vanilla junit test runner.

      Attachments

        1. patch.txt
          3 kB
          Arseniy Alekseyev
        2. patch.txt
          7 kB
          Arseniy Alekseyev

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            bmargulies Benson Margulies
            Votes:
            5 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment