PMDCommandLineInterface { public static String buildUsageText() { String fullText = PMD.EOL + "Mandatory arguments:" + PMD.EOL + "1) A java source code filename or directory" + PMD.EOL + "2) A report format " + PMD.EOL + "3) A ruleset filename or a comma-delimited string of ruleset filenames" + PMD.EOL + PMD.EOL + "For example: " + PMD.EOL + getWindowsLaunchCmd() + " -d c:\\my\\source\\code -f html -R java-unusedcode" + PMD.EOL + PMD.EOL; fullText += supportedVersions() + PMD.EOL; fullText += "Available report formats and their configuration properties are:" + PMD.EOL + getReports() + PMD.EOL + getExamples() + PMD.EOL + PMD.EOL + PMD.EOL; return fullText; } private  PMDCommandLineInterface(); static PMDParameters extractParameters(PMDParameters arguments, String[] args, String progName); static String buildUsageText(); @Deprecated static String buildUsageText(JCommander jcommander); static void main(String[] args); static String jarName(); static void run(String[] args); static void setStatusCodeOrExit(int status); static final String PROG_NAME; static final String NO_EXIT_AFTER_RUN; static final String STATUS_CODE_PROPERTY; static final int NO_ERRORS_STATUS; static final int ERROR_STATUS; static final int VIOLATIONS_FOUND; }
@Test public void testBuildUsageText() { Assert.assertNotNull(PMDCommandLineInterface.buildUsageText()); }