Skip to content

Commit 02269cc

Browse files
committed
Adhere to standard surefire *Test class name suffix
1 parent 1e4835c commit 02269cc

File tree

2 files changed

+2
-12
lines changed

2 files changed

+2
-12
lines changed

app/backend/src/test/java/com/microsoft/openai/samples/rag/AskAPITests.java renamed to app/backend/src/test/java/com/microsoft/openai/samples/rag/AskAPITest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
*/
4242
@ActiveProfiles("test")
4343
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
44-
class AskAPITests {
44+
class AskAPITest {
4545

4646
@Autowired
4747
private TestRestTemplate restTemplate;

app/backend/src/test/java/com/microsoft/openai/samples/rag/ChatAPITests.java renamed to app/backend/src/test/java/com/microsoft/openai/samples/rag/ChatAPITest.java

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,18 @@
11
package com.microsoft.openai.samples.rag;
22

3-
import com.microsoft.openai.samples.rag.ask.controller.AskRequest;
4-
import com.microsoft.openai.samples.rag.ask.controller.AskResponse;
5-
import com.microsoft.openai.samples.rag.chat.controller.ChatRequest;
6-
import com.microsoft.openai.samples.rag.chat.controller.ChatResponse;
7-
import com.microsoft.openai.samples.rag.chat.controller.ChatTurn;
83
import org.junit.jupiter.api.Test;
94
import org.springframework.beans.factory.annotation.Autowired;
105
import org.springframework.boot.test.context.SpringBootTest;
116
import org.springframework.boot.test.web.client.TestRestTemplate;
12-
import org.springframework.http.HttpEntity;
13-
import org.springframework.http.HttpStatus;
14-
import org.springframework.http.ResponseEntity;
157
import org.springframework.test.context.ActiveProfiles;
168

179
import java.net.URI;
18-
import java.util.ArrayList;
19-
import java.util.List;
2010

2111
import static org.junit.jupiter.api.Assertions.assertEquals;
2212

2313
@ActiveProfiles("test")
2414
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
25-
public class ChatAPITests {
15+
public class ChatAPITest {
2616

2717
@Autowired
2818
private TestRestTemplate restTemplate;

0 commit comments

Comments
 (0)