assertThat(core.debug, equalTo(false))
}
+ @Test
+ fun `debug flag can be set`() {
+ val configuration = mock<Configuration>()
+ val freenetInterface = mock<FreenetInterface>()
+ val identityManager = mock<IdentityManager>()
+ val soneDownloader = mock<SoneDownloader>()
+ val imageInserter = mock<ImageInserter>()
+ val updateChecker = mock<UpdateChecker>()
+ val webOfTrustUpdater = mock<WebOfTrustUpdater>()
+ val eventBus = mock<EventBus>()
+ val database = mock<Database>()
+ val core = Core(configuration, freenetInterface, identityManager, soneDownloader, imageInserter, updateChecker, webOfTrustUpdater, eventBus, database)
+ core.setDebug()
+ assertThat(core.debug, equalTo(true))
+ }
+
}