Class StubFilesTest
java.lang.Object
org.checkerframework.framework.source.StubFilesTest
Tests for
StubFiles propagation across checker hierarchies and compound checkers.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBase test checker with explicit stub files.static classChild subchecker with its own stub files.static classChecker with both declared and extra stub files.static classGrandparent checker with stub files.static classSubclass checker inheriting superclass stub files.static classSubclass checker overriding with its own stub files.static classParent compound checker.static classUnannotated parent checker extending GrandparentStubChecker. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidTests bidirectional stub file propagation between parent checker and subchecker.voidTests that shared stub files are deduplicated and insertion order is preserved.voidTests that getExtraStubFiles() are included in getStubFiles().voidTests that a subchecker inherits stub files from a parent checker's superclass.voidTests that setParentChecker invalidates cached stub files on the subchecker.voidTests that an unannotated subclass inherits stub files from an annotated superclass.voidTests that a subclass with @StubFiles overrides its superclass's stub files.
-
Constructor Details
-
StubFilesTest
public StubFilesTest()Default constructor.
-
-
Method Details
-
testSubclassInheritsStubFiles
public void testSubclassInheritsStubFiles()Tests that an unannotated subclass inherits stub files from an annotated superclass. -
testSubclassOverridesStubFiles
public void testSubclassOverridesStubFiles()Tests that a subclass with @StubFiles overrides its superclass's stub files. -
testExtraStubFiles
public void testExtraStubFiles()Tests that getExtraStubFiles() are included in getStubFiles(). -
testCompoundCheckerPropagation
public void testCompoundCheckerPropagation()Tests bidirectional stub file propagation between parent checker and subchecker. -
testSetParentCheckerInvalidation
public void testSetParentCheckerInvalidation()Tests that setParentChecker invalidates cached stub files on the subchecker. -
testParentSuperclassPropagation
public void testParentSuperclassPropagation()Tests that a subchecker inherits stub files from a parent checker's superclass. -
testDeduplicationAndOrder
public void testDeduplicationAndOrder()Tests that shared stub files are deduplicated and insertion order is preserved.
-