Suppress varargs warnings
This commit is contained in:
@@ -233,7 +233,7 @@ class DefaultFunctionCallbackBuilderTests {
|
||||
|
||||
@Test
|
||||
void whenMethodArgumentTypesIsNullThenThrow() {
|
||||
assertThatThrownBy(() -> FunctionCallback.builder().method("methodName", null))
|
||||
assertThatThrownBy(() -> FunctionCallback.builder().method("methodName", (Class<?>[]) null))
|
||||
.isInstanceOf(IllegalArgumentException.class)
|
||||
.hasMessage("Argument types must not be null");
|
||||
}
|
||||
|
||||
@@ -52,7 +52,8 @@ class PromptAssertTests {
|
||||
|
||||
@Test
|
||||
void whenPlaceholdersIsNullThenThrow() {
|
||||
assertThatThrownBy(() -> PromptAssert.templateHasRequiredPlaceholders(new PromptTemplate("{query}"), null))
|
||||
assertThatThrownBy(
|
||||
() -> PromptAssert.templateHasRequiredPlaceholders(new PromptTemplate("{query}"), (String[]) null))
|
||||
.isInstanceOf(IllegalArgumentException.class)
|
||||
.hasMessageContaining("placeholders cannot be null or empty");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user