Skip to content

Commit c2b55ab

Browse files
author
I750911
committed
e2e tests
1 parent 3174f07 commit c2b55ab

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

sample-code/spring-app/src/test/java/com/sap/ai/sdk/app/controllers/SpringAiOrchestrationTest.java

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,22 @@ void testMasking() {
5858
assertThat(response.getResult().getOutput().getText()).isNotEmpty();
5959
}
6060

61+
@Test
62+
void testInputFiltering() {
63+
assertThatThrownBy(() -> service.inputFiltering())
64+
.isInstanceOf(OrchestrationClientException.class)
65+
.hasMessageContaining("filter")
66+
.hasMessageContaining("400 Bad Request");
67+
}
68+
69+
@Test
70+
void testOutputFiltering() {
71+
assertThatThrownBy(() -> service.outputFiltering())
72+
.isInstanceOf(OrchestrationClientException.class)
73+
.hasMessageContaining("filter")
74+
.hasMessageContaining("400 Bad Request");
75+
}
76+
6177
@Test
6278
void testToolCallingWithoutExecution() {
6379
ChatResponse response = service.toolCalling(false);

0 commit comments

Comments
 (0)