Package org.checkerframework.framework.test.junit
package org.checkerframework.framework.test.junit
-
ClassDescriptionA test that the accumulation abstract checker is working correctly, using a simple accumulation checker without a returns-receiver analysis.A test that the accumulation abstract checker is working correctly, using a simple accumulation checker.Tests that a constructor's own explicit annotation, written using an alias rather than the canonical annotation, is recognized when computing the type of a constructor reference (
Foo::new), the same way the canonical annotation would be.Tests thatAnnotatedTypeFactory.addAliasedTypeAnnotation(java.lang.Class<?>, javax.lang.model.element.AnnotationMirror)validates that the canonical annotation is a supported qualifier and the alias is not already in the type hierarchy.Perform tests of the@AnnotatedForannotation with the Subtyping Checker.An annotation with a byte-typed element.Tests the ClassVal Checker.Tests for the compound checker design pattern.Created by jburke on 9/29/14.Created by jburke on 9/29/14.Tests that a default registered byQualifierDefaults.addElementDefault(javax.lang.model.element.Element, javax.lang.model.element.AnnotationMirror, org.checkerframework.framework.qual.TypeUseLocation)which conflicts with a@DefaultQualifierwritten on the same declaration is reported as a type-system error, rather than the two being merged and the winner decided by annotation ordering.Tests thatQualifierDefaults.addElementDefault(javax.lang.model.element.Element, javax.lang.model.element.AnnotationMirror, org.checkerframework.framework.qual.TypeUseLocation)reports a type system error when it is called after type checking has begun, rather than silently applying the new default to only the part of the program that has not been checked yet.Tests that programmatic defaults registered for a location prohibited by the qualifier'sTargetLocationsmeta-annotation are reported as type-system errors.TestsQualifierDefaults.addElementDefault(javax.lang.model.element.Element, javax.lang.model.element.AnnotationMirror, org.checkerframework.framework.qual.TypeUseLocation): that a default added on a package reaches that package's subpackages, the same way a written@DefaultQualifierwould (eisop#2037), unless it is added byaddPackageDefaultwithapplyToSubpackages = false, and that a default added on a class merges with written@DefaultQualifierannotations and with enclosing defaults no matter which defaults were queried, and thereby memoized, before it was added (eisop#2047).Tests suppression of diagnostics reported on elements.JUnit tests for the Checker Framework, using theEvenOddChecker.JUnit tests for the Checker Framework, using theEvenOddChecker.Tests a checker that overrides how an intersection type's bound qualifiers are combined.Tests the MethodVal Checker.Test case for reproducing and verifying the fix for the NullPointerException in AnnotatedTypes.glbSubtype when encountering unannotated type variable bounds.Tests the NonTopDefault Checker.Regression tests for performance-relevant invariants that have broken in the past or whose accidental reintroduction would silently undo a shipped optimization.Tests for the-AsuggestPureMethodscommand-line argument.This class tests the Range class, independent of the Value Checker.Tests the reflection resolution using a simple type system.tests the returns receiver checker's AutoValue integration.Tests the returns receiver checker's lombok integration, the test files in tests/returnsreceiverlombok package will be delomboked into tests/returnsreceiverdelomboked package before running the test and the returns receiver checker will run on the generated codes.Test runner for tests of the Returns Receiver Checker.TestsSourceChecker#shouldSkipDefs(VariableTree).Tests the dataflow value of a diamond nested in an enclosing type argument inference.JUnit tests for stub-provided type-parameter bound widening/narrowing.Test suite for the Subtyping Checker, using a simpleEncryptedannotation.Test suite for the Subtyping Checker, using@QualifierForLiterals.Create the TypeDeclDefault test.Tests conservative defaults for the constant value propagation type system.Tests the constant value propagation type system without overflow.Tests the constant value propagation type system.Create the VariableNameDefault test.