From 1d051a41b18cbe15877cefbe21ae3097dced07ce Mon Sep 17 00:00:00 2001 From: Markus Gylling Date: Tue, 5 Jul 2022 23:50:26 +0200 Subject: [PATCH] Update CachingDocumentLoaderTests.java --- .../vc/util/CachingDocumentLoaderTests.java | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/inspector-vc/src/test/java/org/oneedtech/inspect/vc/util/CachingDocumentLoaderTests.java b/inspector-vc/src/test/java/org/oneedtech/inspect/vc/util/CachingDocumentLoaderTests.java index e51222a..4710258 100644 --- a/inspector-vc/src/test/java/org/oneedtech/inspect/vc/util/CachingDocumentLoaderTests.java +++ b/inspector-vc/src/test/java/org/oneedtech/inspect/vc/util/CachingDocumentLoaderTests.java @@ -13,7 +13,7 @@ import com.google.common.io.Resources; public class CachingDocumentLoaderTests { @Test - void testStaticCachedDocument() { + void testStaticCachedDocumentURI() { Assertions.assertDoesNotThrow(()->{ DocumentLoader loader = new CachingDocumentLoader(); URI uri = Resources.getResource("contexts/did-v1.jsonld").toURI(); @@ -21,4 +21,16 @@ public class CachingDocumentLoaderTests { Assertions.assertNotNull(doc); }); } + + @Test + void testStaticCachedDocumentKey() { + Assertions.assertDoesNotThrow(()->{ + DocumentLoader loader = new CachingDocumentLoader(); + URI uri = new URI("https://www.w3.org/ns/did/v1"); + Document doc = loader.loadDocument(uri, new DocumentLoaderOptions()); + Assertions.assertNotNull(doc); + }); + } + + }