Skip to content

Commit

Permalink
adds -ve test case
Browse files Browse the repository at this point in the history
  • Loading branch information
rajadilipkolli committed Jan 2, 2025
1 parent 01c8726 commit 88dc14a
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,16 @@ void chatWithSystemPrompt() {
.body("answer", containsString("cricket"));
}

@Test
void shouldHandleErrorGracefullyForSystemPrompt() {
given().contentType(ContentType.JSON)
.body(defaultChatRequest(""))
.when()
.post("/api/ai/chat-with-system-prompt")
.then()
.statusCode(HttpStatus.SC_BAD_REQUEST);
}

@Test
void shouldAnalyzeSentimentAsSarcastic() {
given().contentType(ContentType.JSON)
Expand Down

0 comments on commit 88dc14a

Please sign in to comment.