source: apps/routerconsole/java/test/scalatest/net/i2p/router/update/ConsoleUpdateManagerSpec.scala @ 7dae4eb

Last change on this file since 7dae4eb was 7dae4eb, checked in by str4d <str4d@…>, 3 years ago

ScalaTest?: Fix deprecation warnings

  • Property mode set to 100644
File size: 618 bytes
Line 
1package net.i2p.router.update
2
3import org.scalatest.FunSpec
4import org.scalatest.mockito.MockitoSugar
5
6import net.i2p.app.ClientAppManager;
7import net.i2p.router.RouterContext
8
9/**
10 * @author str4d
11 */
12class ConsoleUpdateManagerSpec extends FunSpec with UpdateManagerBehaviors with MockitoSugar {
13    def consoleUpdateManager = {
14        val mockCtx = mock[RouterContext]
15        val mockMgr = mock[ClientAppManager]
16        val cum = new ConsoleUpdateManager(mockCtx, mockMgr, null)
17        cum
18    }
19
20    describe("A ConsoleUpdateManager") {
21        it should behave like updateManager(consoleUpdateManager)
22    }
23}
Note: See TracBrowser for help on using the repository browser.