A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/pmd/pmd/issues/428 below:

[java] PMD requires public modifier on JUnit 5 test · Issue #428 · pmd/pmd · GitHub

Rule Set:
TestClassWithoutTestCases

Description:
In Junit5 tests, tests do not require a public modifier any longer. However, PMD reports (without the modifier) that there are no test cases.

Code Sample demonstrating the issue:

import org.junit.jupiter.api.Test;

class JUnit5Test {
  @Test
  void myTest() {
  }
}

Adding public to the test removes the error.

Running PMD through: Maven


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4