| Summary: | [JUnit] Tests don't run when test case is not public | ||
|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Emerson Murphy-Hill <captain.emerson> |
| Component: | UI | Assignee: | Markus Keller <markus.kell.r> |
| Status: | CLOSED WONTFIX | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | ||
| Version: | 3.2 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | stalebug | ||
We use the normal JUnit framework (org.junit) which only accepts test cases that are public. We can't do anything there. But I agree that the message could say a bit more. This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug. If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie. |
The following test runs fine with JUnit: public class MyTest extends TestCase{ public void testX(){} } But making the class's visibility default does not: class MyTest extends TestCase{ public void testX(){} } If you try to run it, you get a cryptic error message like "No tests found with test runner JUnit 3." Preferrably, JUnit should work regardless of the visibility. If this is undesirable behavior for some reason, at least there should be a more informative error message.