Class SourceFile

java.lang.Object
org.springframework.core.test.tools.DynamicFile
org.springframework.core.test.tools.SourceFile
All Implemented Interfaces:
org.assertj.core.api.AssertProvider<SourceFileAssert>

public final class SourceFile extends DynamicFile implements org.assertj.core.api.AssertProvider<SourceFileAssert>
DynamicFile that holds Java source code and provides SourceFileAssert support. Usually created from an AOT generated type, for example:
 SourceFile.of(generatedFile::writeTo)
 
Since:
6.0
Author:
Phillip Webb, Scott Frederick
  • Method Details