Skip to content

Commit

Permalink
feat : change assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
rajadilipkolli committed Apr 7, 2024
1 parent 75b1365 commit 668983f
Showing 1 changed file with 3 additions and 30 deletions.
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -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)));
}
}

0 comments on commit 668983f

Please sign in to comment.