Modifier and Type | Method and Description |
---|---|
static List<@ReadOnly File> |
deeplyEnclosedJavaTestFiles(@ReadOnly File directory)
Returns all the java files that are descendants of the given directory
|
static List<@ReadOnly File> |
enclosedJavaTestFiles(@ReadOnly File directory)
Returns all the java files that are direct children of the given
directory
|
static List<@ReadOnly String> |
expectedDiagnostics(@ReadOnly File file) |
static List<@ReadOnly String> |
expectedDiagnostics(@ReadOnly String prefix,
File[] files) |
static List<@ReadOnly String> |
expectedDiagnostics(@ReadOnly String prefix,
String[] files) |
static boolean |
isJavaFile(@ReadOnly File file)
Returns true if the file is a file ending with
.java |
static boolean |
isJavaTestFile(@ReadOnly File file)
Checks if the given file is a java test file not to be ignored.
|
static boolean |
shouldSucceed(@ReadOnly File expectedFile)
Returns true if the compilation associated with the given expected
output should succeed without any errors.
|
public static boolean isJavaFile(@ReadOnly File file)
.java
public static boolean isJavaTestFile(@ReadOnly File file)
@skip-test
in the declaration comment of the file.public static boolean shouldSucceed(@ReadOnly File expectedFile)
public static List<@ReadOnly File> enclosedJavaTestFiles(@ReadOnly File directory)
public static List<@ReadOnly File> deeplyEnclosedJavaTestFiles(@ReadOnly File directory)
public static List<@ReadOnly String> expectedDiagnostics(@ReadOnly String prefix, String[] files)