From d90bb7245a9e3126055cd79c22f04da2720d39d8 Mon Sep 17 00:00:00 2001 From: "Andy Miller (IMS)" <48326098+amiller-ims@users.noreply.github.com> Date: Tue, 16 May 2023 10:35:07 +0900 Subject: [PATCH] Add a did:web method test --- .../java/org/oneedtech/inspect/vc/OB30Tests.java | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/inspector-vc/src/test/java/org/oneedtech/inspect/vc/OB30Tests.java b/inspector-vc/src/test/java/org/oneedtech/inspect/vc/OB30Tests.java index 2367fea..1ad10dc 100644 --- a/inspector-vc/src/test/java/org/oneedtech/inspect/vc/OB30Tests.java +++ b/inspector-vc/src/test/java/org/oneedtech/inspect/vc/OB30Tests.java @@ -44,9 +44,18 @@ public class OB30Tests { } @Test - void testSimpleDidMethodJsonValid() { + void testSimpleDidKeyMethodJsonValid() { assertDoesNotThrow(()->{ - Report report = validator.run(Samples.OB30.JSON.SIMPLE_DID_METHOD_JSON.asFileResource()); + Report report = validator.run(Samples.OB30.JSON.SIMPLE_DID_KEY_METHOD_JSON.asFileResource()); + if(verbose) PrintHelper.print(report, true); + assertValid(report); + }); + } + + @Test + void testSimpleDidWebMethodJsonValid() { + assertDoesNotThrow(()->{ + Report report = validator.run(Samples.OB30.JSON.SIMPLE_DID_WEB_METHOD_JSON.asFileResource()); if(verbose) PrintHelper.print(report, true); assertValid(report); });