From 1eb540380efa0672c91487dda3ba2fbee3f60ba7 Mon Sep 17 00:00:00 2001 From: Liam Date: Thu, 18 Apr 2024 13:58:28 +0100 Subject: [PATCH] pls work --- .../java/xyz/mcutils/backend/tests/MojangControllerTests.java | 3 +++ .../java/xyz/mcutils/backend/tests/PlayerControllerTests.java | 3 +++ .../java/xyz/mcutils/backend/tests/ServerControllerTests.java | 3 +++ 3 files changed, 9 insertions(+) diff --git a/src/test/java/xyz/mcutils/backend/tests/MojangControllerTests.java b/src/test/java/xyz/mcutils/backend/tests/MojangControllerTests.java index 982edf2..6a782f3 100644 --- a/src/test/java/xyz/mcutils/backend/tests/MojangControllerTests.java +++ b/src/test/java/xyz/mcutils/backend/tests/MojangControllerTests.java @@ -2,10 +2,12 @@ package xyz.mcutils.backend.tests; import cc.fascinated.config.TestRedisConfig; import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.extension.ExtendWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.http.MediaType; +import org.springframework.test.context.junit.jupiter.SpringExtension; import org.springframework.test.web.servlet.MockMvc; import xyz.mcutils.backend.config.TestMongoConfig; @@ -14,6 +16,7 @@ import static org.springframework.test.web.servlet.result.MockMvcResultMatchers. @AutoConfigureMockMvc @SpringBootTest(classes = {TestRedisConfig.class, TestMongoConfig.class}) +@ExtendWith(SpringExtension.class) class MojangControllerTests { @Autowired diff --git a/src/test/java/xyz/mcutils/backend/tests/PlayerControllerTests.java b/src/test/java/xyz/mcutils/backend/tests/PlayerControllerTests.java index ab96aa5..2900739 100644 --- a/src/test/java/xyz/mcutils/backend/tests/PlayerControllerTests.java +++ b/src/test/java/xyz/mcutils/backend/tests/PlayerControllerTests.java @@ -2,10 +2,12 @@ package xyz.mcutils.backend.tests; import cc.fascinated.config.TestRedisConfig; import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.extension.ExtendWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.http.MediaType; +import org.springframework.test.context.junit.jupiter.SpringExtension; import org.springframework.test.web.servlet.MockMvc; import xyz.mcutils.backend.config.TestMongoConfig; import xyz.mcutils.backend.model.skin.ISkinPart; @@ -16,6 +18,7 @@ import static org.springframework.test.web.servlet.result.MockMvcResultMatchers. @AutoConfigureMockMvc @SpringBootTest(classes = {TestRedisConfig.class, TestMongoConfig.class}) +@ExtendWith(SpringExtension.class) class PlayerControllerTests { private final String testPlayerUuid = "eeab5f8a-18dd-4d58-af78-2b3c4543da48"; diff --git a/src/test/java/xyz/mcutils/backend/tests/ServerControllerTests.java b/src/test/java/xyz/mcutils/backend/tests/ServerControllerTests.java index 1b4647e..23fc8b4 100644 --- a/src/test/java/xyz/mcutils/backend/tests/ServerControllerTests.java +++ b/src/test/java/xyz/mcutils/backend/tests/ServerControllerTests.java @@ -2,10 +2,12 @@ package xyz.mcutils.backend.tests; import cc.fascinated.config.TestRedisConfig; import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.extension.ExtendWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.http.MediaType; +import org.springframework.test.context.junit.jupiter.SpringExtension; import org.springframework.test.web.servlet.MockMvc; import xyz.mcutils.backend.config.TestMongoConfig; @@ -15,6 +17,7 @@ import static org.springframework.test.web.servlet.result.MockMvcResultMatchers. @AutoConfigureMockMvc @SpringBootTest(classes = {TestRedisConfig.class, TestMongoConfig.class}) +@ExtendWith(SpringExtension.class) class ServerControllerTests { private final String testServer = "play.hypixel.net";