source: apps/routerconsole/java/test/scalatest/net/i2p/router/update/NewsFetcherSpec.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: 672 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 NewsFetcherSpec extends FunSpec with UpdateRunnerBehaviors with MockitoSugar {
15    def newsFetcher = {
16        val mockCtx = mock[RouterContext]
17        val mockMgr = mock[ConsoleUpdateManager]
18        val mockUri = mock[URI]
19        val uris = Collections.singletonList(mockUri)
20        val nf = new NewsFetcher(mockCtx, mockMgr, uris)
21        nf
22    }
23
24    describe("A NewsFetcher") {
25        it should behave like updateRunner(newsFetcher)
26    }
27}
Note: See TracBrowser for help on using the repository browser.