Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
GoogleCodeExporter opened this issue Mar 28, 2015 · 0 comments
Open

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

GoogleCodeExporter opened this issue Mar 28, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

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:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant