Skip to content

Commit a3431ca

Browse files
committed
MOPPAND-1700 Fix for CryptoContainer tests.
1 parent b2998d9 commit a3431ca

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

crypto-lib/src/androidTest/kotlin/ee/ria/DigiDoc/cryptolib/CryptoContainerTest.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ class CryptoContainerTest {
495495
fun cryptoContainer_openOrCreate_dataFilesNullExpectException() =
496496
runTest {
497497
val cdoc2Settings = CDOC2Settings(context)
498-
openOrCreate(context, testFile, null, cdoc2Settings)
498+
openOrCreate(context, testFile, listOf(), cdoc2Settings)
499499
}
500500

501501
@Test(expected = DataFilesEmptyException::class)
@@ -1002,7 +1002,7 @@ class CryptoContainerTest {
10021002

10031003
val testFiles = listOf(testFile)
10041004
val container = openOrCreate(context, testFile, testFiles, cdoc2Settings)
1005-
encrypt(context, container.file, null, listOf(recipient), cdoc2Settings, configurationRepository)
1005+
encrypt(context, container.file, listOf(), listOf(recipient), cdoc2Settings, configurationRepository)
10061006
}
10071007

10081008
@Test(expected = DataFilesEmptyException::class)
@@ -1037,7 +1037,7 @@ class CryptoContainerTest {
10371037

10381038
val testFiles = listOf(testFile)
10391039
val container = openOrCreate(context, testFile, testFiles, cdoc2Settings)
1040-
encrypt(context, container.file, testFiles, null, cdoc2Settings, configurationRepository)
1040+
encrypt(context, container.file, testFiles, listOf(), cdoc2Settings, configurationRepository)
10411041
}
10421042

10431043
@Test(expected = RecipientsEmptyException::class)

0 commit comments

Comments
 (0)