Skip to content

Commit

Permalink
Adding tests for Trust Registry (some Android versions might not load…
Browse files Browse the repository at this point in the history
… the registry)
  • Loading branch information
vitorpamplona committed Jul 19, 2022
1 parent 640d5d9 commit 9726a3a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class ICAOMasterListTest {
}

@Test
fun testICAOHealthList() {
fun parseICAOHealthList() {
Security.removeProvider(BouncyCastleProvider.PROVIDER_NAME)
Security.addProvider(BouncyCastleProviderSingleton.getInstance())

Expand All @@ -92,7 +92,7 @@ class ICAOMasterListTest {
}

@Test
fun testICAOMasterList() {
fun parseICAOMasterList() {
Security.removeProvider(BouncyCastleProvider.PROVIDER_NAME)
Security.addProvider(BouncyCastleProviderSingleton.getInstance())

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package org.who.ddccverifier.trust

import org.junit.Assert.assertNotNull
import org.junit.Test
import org.who.ddccverifier.services.trust.TrustRegistry

class TrustRegistryTest {
@Test
fun loadEntity() {
val t = TrustRegistry.resolve(TrustRegistry.Framework.DCC, "G3jDFQ1oK0Q=");
assertNotNull(t);
}
}

0 comments on commit 9726a3a

Please sign in to comment.