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 ChatOptionsB- 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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidReturn the concrete options class being tested.protected abstract BReturn an instance of a builder that should not error when callingChatOptions.Builder.build().void
-
Constructor Details
-
AbstractChatOptionsTests
public AbstractChatOptionsTests()
-
-
Method Details
-
builderShouldReturnNewInstances
@Test public void builderShouldReturnNewInstances() -
testMutateBehavior
@Test public void testMutateBehavior() -
getConcreteOptionsClass
Return the concrete options class being tested. -
readyToBuildBuilder
Return an instance of a builder that should not error when callingChatOptions.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.
-