GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — [java] TestClassWithoutTestCases reports wrong classes in a file · Issue #3624 · pmd/pmd Closed Labels a:false-positivePMD flags a piece of code that is not problematic Milestone DescriptionAffects PMD Version: 6.40.0 Rule: TestClassWithoutTestCases Description: When a test class contains additional helper classes in the same compilation units, then these are reported as well, even if they are no test classes. Code Sample demonstrating the issue: import org.junit.Test; public class MyTest { @Test public void myTest() { } } class Helper { } // this is reported, but this is not a test class, so doesn't need test cases Expected outcome: PMD reports a violation at line 9, but that's wrong. That's a false positive. Activity
MetadataMetadataAssigneesLabelsa:false-positivePMD flags a piece of code that is not problematic TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |