deva-rajan / hamake

Automatically exported from code.google.com/p/hamake
0 stars 0 forks source link

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

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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: