Skip to content

Commit 5460331

Browse files
committed
fix(test): remove disabled annotation from specific stamina tests
1 parent 1d93818 commit 5460331

2 files changed

Lines changed: 4 additions & 12 deletions

File tree

game/src/test/java/net/onelitefeather/cygnus/stamina/StaminaFactoryTest.java

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,16 @@
33
import net.minestom.server.entity.Player;
44
import net.minestom.server.instance.Instance;
55
import net.minestom.testing.Env;
6-
import net.minestom.testing.extension.MicrotusExtension;
6+
import net.onelitefeather.cygnus.CygnusPlayerTestBase;
77
import net.onelitefeather.cygnus.player.CygnusPlayer;
88
import org.jetbrains.annotations.NotNull;
99
import org.junit.jupiter.api.AfterAll;
1010
import org.junit.jupiter.api.BeforeAll;
11-
import org.junit.jupiter.api.Disabled;
1211
import org.junit.jupiter.api.Test;
13-
import org.junit.jupiter.api.extension.ExtendWith;
1412

1513
import static org.junit.jupiter.api.Assertions.*;
1614

17-
@Disabled("The Minestom framework doesn't support custom player implementations in tests")
18-
@ExtendWith(MicrotusExtension.class)
19-
class StaminaFactoryTest {
15+
class StaminaFactoryTest extends CygnusPlayerTestBase {
2016

2117
private static Instance instance;
2218
private static Player player;

game/src/test/java/net/onelitefeather/cygnus/stamina/StaminaServiceTest.java

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,16 @@
33
import net.minestom.server.entity.Player;
44
import net.minestom.server.instance.Instance;
55
import net.minestom.testing.Env;
6-
import net.minestom.testing.extension.MicrotusExtension;
6+
import net.onelitefeather.cygnus.CygnusPlayerTestBase;
77
import org.jetbrains.annotations.NotNull;
88
import org.junit.jupiter.api.AfterAll;
99
import org.junit.jupiter.api.AfterEach;
1010
import org.junit.jupiter.api.BeforeAll;
11-
import org.junit.jupiter.api.Disabled;
1211
import org.junit.jupiter.api.Test;
13-
import org.junit.jupiter.api.extension.ExtendWith;
1412

1513
import static org.junit.jupiter.api.Assertions.*;
1614

17-
@Disabled("The Minestom framework doesn't support custom player implementations in tests")
18-
@ExtendWith(MicrotusExtension.class)
19-
class StaminaServiceTest {
15+
class StaminaServiceTest extends CygnusPlayerTestBase {
2016

2117
private static StaminaService staminaService;
2218

0 commit comments

Comments
 (0)