Fixed quest tests not using the correct startup procedure

This commit is contained in:
Ceikry
2023-08-06 13:35:19 +00:00
committed by Ryan
parent 604925f513
commit c23051db93
+6 -1
View File
@@ -4,7 +4,12 @@ import org.junit.jupiter.api.Assertions
import org.junit.jupiter.api.Test import org.junit.jupiter.api.Test
class QuestTests { class QuestTests {
val testPlayer = TestUtils.getMockPlayer("test") lateinit var testPlayer: MockPlayer
init {
TestUtils.preTestSetup()
testPlayer = TestUtils.getMockPlayer("test")
}
class TestQuest : Quest("Test Quest", 0, 0, 1, 1, 0, 1, 2) { class TestQuest : Quest("Test Quest", 0, 0, 1, 1, 0, 1, 2) {
override fun newInstance(`object`: Any?): Quest { override fun newInstance(`object`: Any?): Quest {
return this return this