this just happened to me. Rebuilding or restarting Eclipse didn’t help.
I solved it by renaming one of the test methods to start with “test…” (JUnit3 style) and then all tests are found. I renamed it back to what it was previously, and it still works.
More Related Contents:
- How do you assert that a certain exception is thrown in JUnit 4 tests?
- Difference between @Before, @BeforeClass, @BeforeEach and @BeforeAll
- How to run test methods in specific order in JUnit4?
- JUnit testing with simulated user input
- How do you assert that a certain exception is thrown in JUnit tests?
- Getting “NoSuchMethodError: org.hamcrest.Matcher.describeMismatch” when running test in IntelliJ 10.5
- Changing names of parameterized tests
- Easy way of running the same junit test over and over?
- How to test that no exception is thrown?
- java.lang.NoClassDefFoundError: org/hamcrest/SelfDescribing
- How do I Dynamically create a Test Suite in JUnit 4?
- Eclipse – debugger doesn’t stop at breakpoint
- How to run all tests belonging to a certain Category in JUnit 4
- How does Junit @Rule work?
- Is Java’s assertEquals method reliable?
- Eclipse No tests found using JUnit 5 caused by NoClassDefFoundError for LauncherFactory
- java.lang.Exception: No runnable methods exception in running JUnits
- Has JUnit4 begun supporting ordering of test? Is it intentional?
- How to define a JUnit method rule in a test suite?
- java.lang.NoClassDefFoundError in junit
- how to export (JUnit) test suite as executable jar
- differences between 2 JUnit Assert classes
- How to run all JUnit tests in a category/suite with Ant?
- Eclipse Java IDE JUnit5: junit.jupiter.api.Assertions is not accessible
- Why is assertEquals(double,double) deprecated in JUnit?
- Using assertArrayEquals in unit tests
- JUnit 4 @BeforeClass & @AfterClass when using Suites
- Does Junit reinitialize the class with each test method invocation?
- How does Eclipse actually run Junit tests?
- Can’t run JUnit 4 test case in Eclipse Android project