Skip to content

Unit tests fail due to non-test inner class #55

@GoogleCodeExporter

Description

@GoogleCodeExporter
What steps will reproduce the problem?

   1. run "ant test"

What is the expected output? What do you see instead?

   TestForeach$1 fails with:

   Test class should have exactly one public constructor

   java.lang.Exception: Test class should have exactly one public constructor
   at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
   No runnable methods

   java.lang.Exception: No runnable methods
   at java.lang.reflect.Constructor.newInstance(Constructor.java:513)


Please use labels and text to provide additional information.

   TestForeach$1 is an inner class that should not be treated as a test class.

   The attached patch simply tells JUnit to not treat inner classes as test classes.

-peter


Original issue reported on code.google.com by petenewc...@gmail.com on 26 Aug 2011 at 12:04

Attachments:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions