Update tests to use ScalaTest 3.0.1

This commit is contained in:
str4d
2016-12-29 18:54:23 +00:00
parent 14ca463499
commit 91007735a1
15 changed files with 51 additions and 23 deletions

View File

@ -3,6 +3,7 @@ package net.i2p.router.update
import org.scalatest.FunSpec
import org.scalatest.mock.MockitoSugar
import net.i2p.app.ClientAppManager;
import net.i2p.router.RouterContext
/**
@ -11,7 +12,8 @@ import net.i2p.router.RouterContext
class ConsoleUpdateManagerSpec extends FunSpec with UpdateManagerBehaviors with MockitoSugar {
def consoleUpdateManager = {
val mockCtx = mock[RouterContext]
val cum = new ConsoleUpdateManager(mockCtx)
val mockMgr = mock[ClientAppManager]
val cum = new ConsoleUpdateManager(mockCtx, mockMgr, null)
cum
}