From 89e81fa20330d53bedc92993aae5f1adc3936215 Mon Sep 17 00:00:00 2001 From: Raja Kolli Date: Mon, 6 May 2024 11:10:33 +0000 Subject: [PATCH] feat : fix spotless --- .../LlmRagWithSpringAiApplicationIntTest.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/rag/rag-springai-ollama-llm/src/test/java/com/learning/ai/llmragwithspringai/LlmRagWithSpringAiApplicationIntTest.java b/rag/rag-springai-ollama-llm/src/test/java/com/learning/ai/llmragwithspringai/LlmRagWithSpringAiApplicationIntTest.java index 59b9a0a..2978914 100644 --- a/rag/rag-springai-ollama-llm/src/test/java/com/learning/ai/llmragwithspringai/LlmRagWithSpringAiApplicationIntTest.java +++ b/rag/rag-springai-ollama-llm/src/test/java/com/learning/ai/llmragwithspringai/LlmRagWithSpringAiApplicationIntTest.java @@ -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; @@ -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(); } @@ -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 @@ -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 {