Package org.springframework.core.test.tools
@NullMarked
package org.springframework.core.test.tools
Support classes for compiling and testing generated code.
-
ClassDescriptionIn memory representation of a Java class.An immutable collection of
ClassFileinstances.Exception thrown when code cannot compile.Fully compiled results provided from atestCompiler.Annotation that registers a JUnit Jupiter extension for test classes or test methods that need to use a forked classloader with compiled code.ClassLoaderused to expose dynamically generated content.Abstract base class for dynamically generated files.Assertion methods forDynamicFileinstances.DynamicFilethat holds resource file content and providesResourceFileAssertsupport.Assertion methods forResourceFileinstances.An immutable collection ofResourceFileinstances.DynamicFilethat holds Java source code and providesSourceFileAssertsupport.Assertion methods forSourceFileinstances.An immutable collection ofSourceFileinstances.Utility that can be used to dynamically compile and test Java source code.Callback interface used to write file content.