Skip to content

Commit

Permalink
feat : fix spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
rajadilipkolli committed May 6, 2024
1 parent 4214972 commit 89e81fa
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,11 @@
import com.learning.ai.llmragwithspringai.model.request.AIChatRequest;
import io.restassured.RestAssured;
import io.restassured.http.ContentType;

import java.io.IOException;
import java.net.URISyntaxException;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.Optional;

import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.MethodOrderer;
import org.junit.jupiter.api.Order;
Expand Down Expand Up @@ -158,7 +156,8 @@ void testNullRequestBody() {
.statusCode(400)
.header(HttpHeaders.CONTENT_TYPE, is(MediaType.APPLICATION_PROBLEM_JSON_VALUE))
.body("detail", is("Failed to read request"))
.body("instance", is("/api/ai/chat")).body("title", is("Bad Request"))
.body("instance", is("/api/ai/chat"))
.body("title", is("Bad Request"))
.log();
}

Expand Down Expand Up @@ -194,7 +193,7 @@ void testMissingQuestionField() {
.body("violations", hasSize(1))
.body("violations[0].field", is("question"))
.body("violations[0].message", containsString("Query cannot be empty"))
.log();;
.log();
}

@Test
Expand All @@ -210,7 +209,7 @@ void testInvalidJsonStructure() {
.body("detail", is("Failed to read request"))
.body("instance", is("/api/ai/chat"))
.body("title", is("Bad Request"))
.log();;
.log();
}

private Path getPath(String fileName) throws URISyntaxException, IOException {
Expand Down

0 comments on commit 89e81fa

Please sign in to comment.