source: apps/routerconsole/java/test/scalatest/net/i2p/router/update/UnsignedUpdateRunnerSpec.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: 720 bytes
Line 
1package net.i2p.router.update
2
3import org.scalatest.FunSpec
4import org.scalatest.mockito.MockitoSugar
5
6import java.net.URI
7import java.util.Collections
8
9import net.i2p.router.RouterContext
10
11/**
12 * @author str4d
13 */
14class UnsignedUpdateRunnerSpec extends FunSpec with UpdateRunnerBehaviors with MockitoSugar {
15    def unsignedUpdateRunner = {
16        val mockCtx = mock[RouterContext]
17        val mockMgr = mock[ConsoleUpdateManager]
18        val mockUri = mock[URI]
19        val uris = Collections.singletonList(mockUri)
20        val uur = new UnsignedUpdateRunner(mockCtx, mockMgr, uris)
21        uur
22    }
23
24    describe("An UnsignedUpdateRunner") {
25        it should behave like updateRunner(unsignedUpdateRunner)
26    }
27}
Note: See TracBrowser for help on using the repository browser.