Class RelevantJavaTypesTest
java.lang.Object
org.checkerframework.framework.source.RelevantJavaTypesTest
Unit tests for
RelevantJavaTypes inheritance across checker class hierarchies.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBase test checker with explicit relevant Java types.static classChecker that overrides createRelevantJavaTypes programmatically.static classSubclass checker adding its own relevant Java types.static classSubclass checker without any annotation.static classTest checker with no annotation and no annotated superclass. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidTests programmatic override via createRelevantJavaTypes.voidTests that a subclass inherits and combines types declared on superclasses in the hierarchy.voidTests that an unannotated subclass inherits types from an annotated superclass.voidTests that a checker with no annotation returns null (unrestricted).
-
Constructor Details
-
RelevantJavaTypesTest
public RelevantJavaTypesTest()Default constructor.
-
-
Method Details
-
testSuperclassRelevantJavaTypesInheritance
public void testSuperclassRelevantJavaTypesInheritance()Tests that a subclass inherits and combines types declared on superclasses in the hierarchy. -
testUnannotatedSubclassInheritsSuperclassTypes
public void testUnannotatedSubclassInheritsSuperclassTypes()Tests that an unannotated subclass inherits types from an annotated superclass. -
testUnrestrictedWhenNoAnnotation
public void testUnrestrictedWhenNoAnnotation()Tests that a checker with no annotation returns null (unrestricted). -
testProgrammaticOverride
public void testProgrammaticOverride()Tests programmatic override via createRelevantJavaTypes.
-