mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-07-04 08:39:27 +00:00
Update plugin test framework to junit5
Updates the testing infrastructure to use the latest relesae of junit and leverages the new extension mechanism to create an easy to use testing framework. Also adds additional test coverage for several plugins.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
package org.apollo.game.action
|
||||
|
||||
import org.apollo.game.action.ActionCoroutine
|
||||
import org.junit.Assert.*
|
||||
import org.junit.Assert.assertFalse
|
||||
import org.junit.Assert.assertTrue
|
||||
import org.junit.Test
|
||||
|
||||
class ActionCoroutineTest {
|
||||
@@ -29,7 +29,6 @@ class ActionCoroutineTest {
|
||||
fun `Coroutine cancels on stop() calls`() {
|
||||
val coroutine = ActionCoroutine.start {
|
||||
stop()
|
||||
wait(1)
|
||||
}
|
||||
|
||||
assertTrue(coroutine.stopped())
|
||||
|
||||
Reference in New Issue
Block a user