add server preview tests

This commit is contained in:
Lee 2024-04-20 19:45:54 +01:00
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());
}
} }