fix tests
This commit is contained in:
parent
2058240197
commit
1d90c6ffc1
5 changed files with 2 additions and 2 deletions
plugins/configuration/src/test
assets/logger
AndroidAPS.2018-01-01_01-01-00.1.zipAndroidAPS.2018-01-02_01-01-00.1.zipAndroidAPS.2018-01-03_01-01-00.1.zipAndroidAPS.log
kotlin/app/aaps/configuration/maintenance
|
@ -34,8 +34,8 @@ class MaintenancePluginTest : TestBase() {
|
|||
fun mock() {
|
||||
sut = MaintenancePlugin(injector, context, rh, sp, nsSettingsStatus, aapsLogger, config, fileListProvider, loggerUtils)
|
||||
`when`(loggerUtils.suffix).thenReturn(".log.zip")
|
||||
`when`(loggerUtils.logDirectory).thenReturn("src/test/res/logger")
|
||||
`when`(fileListProvider.ensureTempDirExists()).thenReturn(File("src/test/res/logger"))
|
||||
`when`(loggerUtils.logDirectory).thenReturn("src/test/assets/logger")
|
||||
`when`(fileListProvider.ensureTempDirExists()).thenReturn(File("src/test/assets/logger"))
|
||||
}
|
||||
|
||||
@Test fun logFilesTest() {
|
||||
|
|
Loading…
Add table
Reference in a new issue