A RetroSearch Logo

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

Search Query:

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

[apex] Test methods should not be in classes other than test classes · Issue #639 · pmd/pmd · GitHub

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