Class AbstractChatOptionsTests<O extends ChatOptions,B extends ChatOptions.Builder<B>>

java.lang.Object
org.springframework.ai.test.options.AbstractChatOptionsTests<O,B>
Type Parameters:
O - the concrete type of ChatOptions
B - the type of the builder for O

public abstract class AbstractChatOptionsTests<O extends ChatOptions,B extends ChatOptions.Builder<B>> extends Object
Abstract base class for testing ChatOptions subclasses.
  • Constructor Details

    • AbstractChatOptionsTests

      public AbstractChatOptionsTests()
  • Method Details

    • builderShouldReturnNewInstances

      @Test public void builderShouldReturnNewInstances()
    • testMutateBehavior

      @Test public void testMutateBehavior()
    • getConcreteOptionsClass

      protected abstract Class<O> getConcreteOptionsClass()
      Return the concrete options class being tested.
    • readyToBuildBuilder

      protected abstract B readyToBuildBuilder()
      Return an instance of a builder that should not error when calling ChatOptions.Builder.build(). This may mean setting some required fields, depending on the semantics of the particular options class. This convenience method helps reduce repetitive boilerplate code used in each and every test.