Class MultipleFilesJavaCheckVerifier


  • @Beta
    @Deprecated
    public final class MultipleFilesJavaCheckVerifier
    extends Object
    Deprecated.
    This class is deprecated, all its features can be achieved by using JavaCheckVerifier.newVerifier() instead.
    Please read the documentation of @see org.sonar.java.checks.verifier.JavaCheckVerifier The main difference is that this class run a check on multiple files and verifies the results at the end of analysis.
    • Method Detail

      • verify

        public static void verify​(List<String> filesToScan,
                                  JavaFileScanner check)
        Deprecated.
        Verifies that all the expected issues are raised after analyzing all the given files with the given check.

        By default, any jar or zip archive present in the folder defined by JavaCheckVerifier#DEFAULT_TEST_JARS_DIRECTORY will be used to add extra classes to the classpath. If this folder is empty or does not exist, then the analysis will be based on the source of the provided file.
        Parameters:
        filesToScan - The files to be analyzed
        check - The check to be used for the analysis
      • verifyNoIssue

        public static void verifyNoIssue​(List<String> filesToScan,
                                         JavaFileScanner check)
        Deprecated.
        Verifies that no issues are raised after analyzing all the given files with the given check.
        Parameters:
        filesToScan - The files to be analyzed
        check - The check to be used for the analysis
      • verifyNoIssueWithoutSemantic

        public static void verifyNoIssueWithoutSemantic​(List<String> filesToScan,
                                                        JavaFileScanner check)
        Deprecated.
        Verifies that no issues are raised after analyzing all given files with the given check when semantic is not available.
        Parameters:
        filesToScan - The files to be analyzed
        check - The check to be used for the analysis