forked from MinecraftUtilities/Backend
add server preview tests
This commit is contained in:
parent
d2ae4b4cc5
commit
eae027af84
@ -56,4 +56,11 @@ class ServerControllerTests {
|
|||||||
.andExpect(status().isOk())
|
.andExpect(status().isOk())
|
||||||
.andExpect(jsonPath("$.blocked").value(false));
|
.andExpect(jsonPath("$.blocked").value(false));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void ensureServerPreviewLookupSuccess() throws Exception {
|
||||||
|
mockMvc.perform(get("/server/preview/java/" + testServer)
|
||||||
|
.contentType(MediaType.IMAGE_PNG))
|
||||||
|
.andExpect(status().isOk());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user