Package io.codemodder.testutils
Annotation Interface Metadata
-
Required Element Summary
Required ElementsModifier and TypeRequired ElementDescriptionClass<? extends io.codemodder.CodeChanger>
The codemod being tested.String[]
The GAV coordinates of any dependencies that should be added to the project after the codemod's execution.The classpath-based test directory containing the test case artifacts. -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionboolean
Whether to re-run the transformed code through a second transformation with the same inputs, but with the transformed code, to see if another transformation is erroneously made.Test files should always be renamed to this before execution.
-
Element Details
-
codemodType
Class<? extends io.codemodder.CodeChanger> codemodTypeThe codemod being tested. -
testResourceDir
String testResourceDirThe classpath-based test directory containing the test case artifacts. -
dependencies
String[] dependenciesThe GAV coordinates of any dependencies that should be added to the project after the codemod's execution.
-
-
-
renameTestFile
String renameTestFileTest files should always be renamed to this before execution. Helps test codemods that only target certain file names. Also supports directories in the path.- Default:
- ""
-
doRetransformTest
boolean doRetransformTestWhether to re-run the transformed code through a second transformation with the same inputs, but with the transformed code, to see if another transformation is erroneously made.- Default:
- true
-