Class TestGenerationContext

java.lang.Object
org.springframework.aot.generate.DefaultGenerationContext
org.springframework.aot.test.generate.TestGenerationContext
All Implemented Interfaces:
GenerationContext

public class TestGenerationContext extends DefaultGenerationContext
GenerationContext test implementation that uses InMemoryGeneratedFiles.
Since:
6.0
Author:
Stephane Nicoll, Sam Brannen
  • Constructor Details

    • TestGenerationContext

      public TestGenerationContext(ClassNameGenerator classNameGenerator)
      Create an instance using the specified ClassNameGenerator.
      Parameters:
      classNameGenerator - the class name generator to use
    • TestGenerationContext

      public TestGenerationContext(Class<?> target)
      Create an instance using the specified target.
      Parameters:
      target - the default target class to use
    • TestGenerationContext

      public TestGenerationContext()
      Create an instance using TestTarget as the target.
  • Method Details