eclipse-jdt / eclipse-jdt/eclipse.jdt.core

Misleading Sugestion for Missing Import Statement for @Test

Open
#1,715 0 comments 0 reactions 0 assignees View on GitHub
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:

grafik

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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.