Class NoDefaultTypeVarTest
java.lang.Object
org.checkerframework.framework.test.CheckerFrameworkPerDirectoryTest
org.checkerframework.framework.test.junit.NoDefaultTypeVarTest
Test case for reproducing and verifying the fix for the NullPointerException in
AnnotatedTypes.glbSubtype when encountering unannotated type variable bounds.
-
Field Summary
Fields inherited from class org.checkerframework.framework.test.CheckerFrameworkPerDirectoryTest
checkerNames, checkerOptions, classpathExtra, testDir, testFiles -
Constructor Summary
ConstructorsConstructorDescriptionNoDefaultTypeVarTest(List<File> testFiles) Creates a new NoDefaultTypeVarTest. -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckResult(TypecheckResult typecheckResult) Check that theTypecheckResultdid not fail.static String[]Returns the test directories.protected FileResolves the test root directory from the optionalTestRootDirectoryannotation or falls back to the default ofcurrentDir/tests.Methods inherited from class org.checkerframework.framework.test.CheckerFrameworkPerDirectoryTest
adjustTypecheckResult, customizeOptions, run
-
Constructor Details
-
NoDefaultTypeVarTest
Creates a new NoDefaultTypeVarTest.- Parameters:
testFiles- the test files
-
-
Method Details
-
getTestDirs
Returns the test directories.- Returns:
- the test directories
-
resolveTestDirectory
Resolves the test root directory from the optionalTestRootDirectoryannotation or falls back to the default ofcurrentDir/tests.- Returns:
- the resolved directory
-
checkResult
Check that theTypecheckResultdid not fail.- Parameters:
typecheckResult- result to check
-