Class NullnessJSpecifyLocationsTest

java.lang.Object
org.checkerframework.framework.test.CheckerFrameworkPerDirectoryTest
org.checkerframework.checker.test.junit.NullnessJSpecifyLocationsTest

public class NullnessJSpecifyLocationsTest extends CheckerFrameworkPerDirectoryTest
JUnit tests for the Nullness Checker when -AjspecifyUnrecognizedLocations is used.
  • Constructor Details

    • NullnessJSpecifyLocationsTest

      public NullnessJSpecifyLocationsTest(List<File> testFiles)
      Create a NullnessJSpecifyLocationsTest.
      Parameters:
      testFiles - the files containing test code, which will be type-checked
  • Method Details

    • getTestDirs

      public static String[] getTestDirs()
      This method returns the directories containing test code. Each directory will be type-checked with -AjspecifyUnrecognizedLocations.
      Returns:
      the directories containing test code
    • resolveTestDirectory

      protected File resolveTestDirectory()
      Resolves the test root directory from the optional TestRootDirectory annotation or falls back to the default of currentDir/tests.
      Returns:
      the resolved directory
    • checkResult

      public void checkResult(TypecheckResult typecheckResult)
      Check that the TypecheckResult did not fail.
      Parameters:
      typecheckResult - result to check