Package org.sonar.java.checks.verifier
Class TestUtils
java.lang.Object
org.sonar.java.checks.verifier.TestUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.sonar.api.batch.fs.InputFileemptyInputFile(String filename) static org.sonar.api.batch.fs.InputFileemptyInputFile(String filename, org.sonar.api.batch.fs.InputFile.Type type) static org.sonar.api.batch.fs.InputFilestatic org.sonar.api.batch.fs.InputFilestatic org.sonar.api.batch.fs.InputFilestatic StringmainCodeSourcesPath(String path) To be used when testing rules targeting MAIN code.static StringTo be used when testing rules behavior when bytecode is missing, partial, or code does not compile.static StringtestCodeSourcesPath(String path) To be used when testing rules targeting TEST code.static StringtestSourcesPath(String path) Deprecated, for removal: This API element is subject to removal in a future version.
-
Method Details
-
testSourcesPath
Deprecated, for removal: This API element is subject to removal in a future version.usemainCodeSourcesPath(String),testCodeSourcesPath(String)instead -
mainCodeSourcesPath
To be used when testing rules targeting MAIN code. -
testCodeSourcesPath
To be used when testing rules targeting TEST code. -
nonCompilingTestSourcesPath
To be used when testing rules behavior when bytecode is missing, partial, or code does not compile. -
emptyInputFile
-
emptyInputFile
public static org.sonar.api.batch.fs.InputFile emptyInputFile(String filename, org.sonar.api.batch.fs.InputFile.Type type) -
inputFile
-
inputFile
-
inputFile
-
mainCodeSourcesPath(String),testCodeSourcesPath(String)instead