File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed
main/java/eu/europa/ec/eudi/wallet/issue/openid4vci
test/java/eu/europa/ec/eudi/wallet/issue/openid4vci Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -62,6 +62,6 @@ internal val CredentialConfiguration.name: String
62
62
internal val CredentialConfiguration .docType: String
63
63
@JvmSynthetic get() = when (this ) {
64
64
is MsoMdocCredential -> docType
65
- is SdJwtVcCredential -> docType
65
+ is SdJwtVcCredential -> " eu.europa.ec.eudi.pid_jwt_vc_json "
66
66
else -> " unknown"
67
67
}
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ import io.mockk.every
29
29
import io.mockk.mockk
30
30
import org.junit.Assert.assertFalse
31
31
import org.junit.Assert.assertTrue
32
- import org.junit.Test
32
+ import org.junit.jupiter.api. Test
33
33
34
34
class CredentialConfigurationFilterTest {
35
35
@@ -99,6 +99,16 @@ class CredentialConfigurationFilterTest {
99
99
assertTrue(DocTypeFilter (docType).invoke(credentialConfiguration))
100
100
}
101
101
102
+
103
+ @Test
104
+ fun `DocTypeFilterFactory returns true for matching docType 2` () {
105
+ val docType = " testDocType"
106
+ val credentialConfiguration = mockk<MsoMdocCredential >(relaxed = true )
107
+ every { credentialConfiguration.docType } returns docType
108
+
109
+ assertTrue(DocTypeFilter (docType).invoke(credentialConfiguration))
110
+ }
111
+
102
112
@Test
103
113
fun `DocTypeFilterFactory returns false for non-matching docType` () {
104
114
val docType = " testDocType"
You can’t perform that action at this time.
0 commit comments