Class NoDefaultTypeVarTest

java.lang.Object
org.checkerframework.framework.test.CheckerFrameworkPerDirectoryTest
org.checkerframework.framework.test.junit.NoDefaultTypeVarTest

public class NoDefaultTypeVarTest extends CheckerFrameworkPerDirectoryTest
Test case for reproducing and verifying the fix for the NullPointerException in AnnotatedTypes.glbSubtype when encountering unannotated type variable bounds.
  • Constructor Details

    • NoDefaultTypeVarTest

      public NoDefaultTypeVarTest(List<File> testFiles)
      Creates a new NoDefaultTypeVarTest.
      Parameters:
      testFiles - the test files
  • Method Details

    • getTestDirs

      public static String[] getTestDirs()
      Returns the test directories.
      Returns:
      the test directories
    • 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