diff --git a/chatmodel-springai/src/test/java/com/example/ai/controller/ChatControllerTest.java b/chatmodel-springai/src/test/java/com/example/ai/controller/ChatControllerTest.java index 7fd9dc2..f1afeca 100644 --- a/chatmodel-springai/src/test/java/com/example/ai/controller/ChatControllerTest.java +++ b/chatmodel-springai/src/test/java/com/example/ai/controller/ChatControllerTest.java @@ -1,8 +1,9 @@ package com.example.ai.controller; import static io.restassured.RestAssured.given; -import static org.hamcrest.Matchers.containsInAnyOrder; import static org.hamcrest.Matchers.containsString; +import static org.hamcrest.Matchers.greaterThanOrEqualTo; +import static org.hamcrest.Matchers.hasSize; import static org.hamcrest.Matchers.is; import com.example.ai.model.request.AIChatRequest; @@ -69,34 +70,6 @@ void outputParser() { .statusCode(HttpStatus.SC_OK) .contentType(ContentType.JSON) .body("actor", is("Jr NTR")) - .body( - "movies", - containsInAnyOrder( - "Ninnu Choodalani", - "Student No.1", - "Subbu", - "Aadi", - "Allari Ramudu", - "Naaga", - "Simhadri", - "Samba", - "Andhrawala", - "Rakhi", - "Yamadonga", - "Kantri", - "Adhurs", - "Brindavanam", - "Shakti", - "Oosaravelli", - "Dammu", - "Baadshah", - "Ramayya Vasthavayya", - "Rabhasa", - "Temper", - "Nannaku Prematho", - "Janatha Garage", - "Jai Lava Kusa", - "Aravinda Sametha Veera Raghava", - "RRR")); + .body("movies", hasSize(greaterThanOrEqualTo(25))); } }