Skip to content

Commit 8e7d828

Browse files
BAEL-8954 - code review
1 parent 288ec5e commit 8e7d828

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

logging-modules/log-all-requests/src/test/java/com/baeldung/logallrequests/LoggingFilterTest.java renamed to logging-modules/log-all-requests/src/test/java/com/baeldung/logallrequests/LoggingFilterIntegrationTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@
1616
@ExtendWith({ SpringExtension.class, OutputCaptureExtension.class })
1717
@SpringBootTest
1818
@AutoConfigureMockMvc
19-
public class LoggingFilterTest {
19+
public class LoggingFilterIntegrationTest {
2020

2121
@Autowired
2222
private MockMvc mockMvc;
2323

2424
@Test
25-
public void testRequestIsLogged(CapturedOutput output) throws Exception {
25+
public void whenRequestIsHandled_thenIncomingRequestIsLogged(CapturedOutput output) throws Exception {
2626
mockMvc.perform(MockMvcRequestBuilders.get("/api/hello")
2727
.header("X-Test-Header", "HeaderValue"))
2828
.andReturn();
@@ -31,7 +31,7 @@ public void testRequestIsLogged(CapturedOutput output) throws Exception {
3131
}
3232

3333
@Test
34-
public void testResponseIsLogged(CapturedOutput output) throws Exception {
34+
public void whenResponseIsSent_thenOutgoingResponseIsLogged(CapturedOutput output) throws Exception {
3535
mockMvc.perform(MockMvcRequestBuilders.get("/api/hello"))
3636
.andReturn();
3737

0 commit comments

Comments
 (0)