Skip to content

Commit de8f207

Browse files
authored
Merge pull request #3627 from JLLeitschuh/feat/JLL/tests_working_again
Get tests running again
2 parents 5b2ba76 + 8e80453 commit de8f207

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ dependencies {
165165
embedded name: 'OC-JNLua', version: '20230530.0', ext: 'jar'
166166
embedded name: 'OC-JNLua-Natives', version: '20220928.1', ext: 'jar'
167167

168+
testCompile "junit:junit:4.13"
168169
testCompile "org.mockito:mockito-all:1.10.19"
169170
testCompile "org.scalactic:scalactic_2.11:2.2.6"
170171
testCompile "org.scalatest:scalatest_2.11:2.2.6"

src/test/scala/NetworkTest.scala

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,14 @@ import li.cil.oc.api.network.Node
55
import li.cil.oc.api.network.Visibility
66
import li.cil.oc.server.network.Network
77
import li.cil.oc.server.network.{Node => MutableNode}
8+
import org.junit.runner.RunWith
89
import org.scalatest._
10+
import org.scalatest.junit.JUnitRunner
911
import org.scalatest.mock.MockitoSugar
1012

1113
import scala.collection.convert.WrapAsScala._
1214

15+
@RunWith(classOf[JUnitRunner])
1316
class NetworkTest extends FlatSpec with MockitoSugar {
1417
Network.isServer = () => true
1518
api.API.network = Network

0 commit comments

Comments
 (0)