diff --git a/jmeter/src/test/java/com/baeldung/JmeterIntegrationTest.java b/jmeter/src/test/java/com/baeldung/JmeterIntegrationTest.java index 537e27dc55..a1494416ef 100644 --- a/jmeter/src/test/java/com/baeldung/JmeterIntegrationTest.java +++ b/jmeter/src/test/java/com/baeldung/JmeterIntegrationTest.java @@ -15,22 +15,21 @@ import static org.springframework.test.web.servlet.result.MockMvcResultMatchers. @SpringBootTest class JmeterIntegrationTest { - MockMvc mvc; + MockMvc mvc; - public JmeterIntegrationTest(WebApplicationContext wac) { - this.mvc = MockMvcBuilders.webAppContextSetup(wac).build(); - } + public JmeterIntegrationTest(WebApplicationContext wac) { + this.mvc = MockMvcBuilders.webAppContextSetup(wac).build(); + } - @Test - void whenCallingUUIDController_thenWeShouldRecieveRandomizedResponse() throws Exception { - MockHttpServletResponse response = mvc.perform(get("/api/uuid")) - .andDo(print()) - .andExpect(status().isOk()) - .andReturn() - .getResponse(); - - assertThat(response.getContentAsString()) - .contains("Test message..."); - } + @Test + void whenCallingUUIDController_thenWeShouldRecieveRandomizedResponse() throws Exception { + MockHttpServletResponse response = mvc.perform(get("/api/uuid")) + .andDo(print()) + .andExpect(status().isOk()) + .andReturn() + .getResponse(); + assertThat(response.getContentAsString()) + .contains("Test message..."); + } }