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

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

ScalaTest?: Fix deprecation warnings

  • Property mode set to 100644
File size: 728 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 UnsignedUpdateCheckerSpec extends FunSpec with UpdateRunnerBehaviors with MockitoSugar {
15    def unsignedUpdateChecker = {
16        val mockCtx = mock[RouterContext]
17        val mockMgr = mock[ConsoleUpdateManager]
18        val mockUri = mock[URI]
19        val uris = Collections.singletonList(mockUri)
20        val uuc = new UnsignedUpdateChecker(mockCtx, mockMgr, uris, 0)
21        uuc
22    }
23
24    describe("An UnsignedUpdateChecker") {
25        it should behave like updateRunner(unsignedUpdateChecker)
26    }
27}
Note: See TracBrowser for help on using the repository browser.