From eae027af841a7b84babb22f0f8bf6e745a367844 Mon Sep 17 00:00:00 2001 From: Liam Date: Sat, 20 Apr 2024 19:45:54 +0100 Subject: [PATCH] add server preview tests --- .../mcutils/backend/test/tests/ServerControllerTests.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/test/java/xyz/mcutils/backend/test/tests/ServerControllerTests.java b/src/test/java/xyz/mcutils/backend/test/tests/ServerControllerTests.java index 6cb0376..df38d2a 100644 --- a/src/test/java/xyz/mcutils/backend/test/tests/ServerControllerTests.java +++ b/src/test/java/xyz/mcutils/backend/test/tests/ServerControllerTests.java @@ -56,4 +56,11 @@ class ServerControllerTests { .andExpect(status().isOk()) .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()); + } }