Skip to content
Snippets Groups Projects
Commit f7d9e465 authored by OZGCloud's avatar OZGCloud
Browse files

OZG-4814 Added SneakyThrows in MongoConfigServerITCase

parent 61244658
Branches
Tags
No related merge requests found
...@@ -10,6 +10,7 @@ import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMock ...@@ -10,6 +10,7 @@ import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMock
import org.springframework.test.web.servlet.MockMvc; import org.springframework.test.web.servlet.MockMvc;
import de.ozgcloud.common.test.ITCase; import de.ozgcloud.common.test.ITCase;
import lombok.SneakyThrows;
@ITCase @ITCase
@AutoConfigureMockMvc @AutoConfigureMockMvc
...@@ -18,9 +19,10 @@ class MongoConfigServerITCase { ...@@ -18,9 +19,10 @@ class MongoConfigServerITCase {
private MockMvc mockMvc; private MockMvc mockMvc;
@Test @Test
void shouldHaveHttpEndpoint() throws Exception { @SneakyThrows
void shouldHaveHttpEndpoint() {
var result = mockMvc var result = mockMvc
.perform(get("/" + MongoPropertySourceTestFactory.APPNAME + "/" + MongoPropertySourceTestFactory.PROFILE, 8080)); .perform(get("/" + MongoPropertySourceTestFactory.APPNAME + "/" + MongoPropertySourceTestFactory.PROFILE));
result.andExpect(status().isOk()); result.andExpect(status().isOk());
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment