Rule Set: Apex Unit
Description:
Methods marked as a testMethod but not residing in a test class should be movedto a proper class or should add the "@istest" annotation to the class
Code Sample demonstrating the issue:
public class myClass {
static testMethod void myTest() {} //missing static keyword
}
Running PMD through: [CLI | Ant | Maven | Gradle | Designer | Other]
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