File tree Expand file tree Collapse file tree
game/src/test/java/net/onelitefeather/cygnus/stamina Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33import net .minestom .server .entity .Player ;
44import net .minestom .server .instance .Instance ;
55import net .minestom .testing .Env ;
6- import net .minestom . testing . extension . MicrotusExtension ;
6+ import net .onelitefeather . cygnus . CygnusPlayerTestBase ;
77import net .onelitefeather .cygnus .player .CygnusPlayer ;
88import org .jetbrains .annotations .NotNull ;
99import org .junit .jupiter .api .AfterAll ;
1010import org .junit .jupiter .api .BeforeAll ;
11- import org .junit .jupiter .api .Disabled ;
1211import org .junit .jupiter .api .Test ;
13- import org .junit .jupiter .api .extension .ExtendWith ;
1412
1513import 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 ;
Original file line number Diff line number Diff line change 33import net .minestom .server .entity .Player ;
44import net .minestom .server .instance .Instance ;
55import net .minestom .testing .Env ;
6- import net .minestom . testing . extension . MicrotusExtension ;
6+ import net .onelitefeather . cygnus . CygnusPlayerTestBase ;
77import org .jetbrains .annotations .NotNull ;
88import org .junit .jupiter .api .AfterAll ;
99import org .junit .jupiter .api .AfterEach ;
1010import org .junit .jupiter .api .BeforeAll ;
11- import org .junit .jupiter .api .Disabled ;
1211import org .junit .jupiter .api .Test ;
13- import org .junit .jupiter .api .extension .ExtendWith ;
1412
1513import 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
You can’t perform that action at this time.
0 commit comments