eclipse-jdt / eclipse-jdt/eclipse.jdt.core
Misleading Sugestion for Missing Import Statement for @Test
Open
- Dominant language
- Java
- Stars
- 237
- Forks
- 195
- Avg merge
- 1d 10h
- Merged PRs (30d)
- 49
Description
Adding an `@Test` annotation in a test class (under `src/test/java`) of a Maven-controlled project offers a misleading suggestion:
While the first two entries "Add JUnit 4..." and "Add JUnit 5..." are debatable, the second part of the third entry is wrong:
- "add 'requires org.junit.jupiter.api' to module-info.java"
File `module-info.java` must not have a `requires org.junit.jupiter.api` directive. Please remove the second part of the third suggestion.
Contributor guide
Assessment
This issue has not been assessed yet.