From 20ca615e468de08b60593918837a74b47014afee Mon Sep 17 00:00:00 2001 From: Xavi Aracil Date: Thu, 24 Nov 2022 17:07:10 +0100 Subject: [PATCH] Added simple badge class test --- .../test/java/org/oneedtech/inspect/vc/OB20Tests.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/inspector-vc/src/test/java/org/oneedtech/inspect/vc/OB20Tests.java b/inspector-vc/src/test/java/org/oneedtech/inspect/vc/OB20Tests.java index 6cb29be..84245cb 100644 --- a/inspector-vc/src/test/java/org/oneedtech/inspect/vc/OB20Tests.java +++ b/inspector-vc/src/test/java/org/oneedtech/inspect/vc/OB20Tests.java @@ -48,6 +48,17 @@ public class OB20Tests { }); } + @Test + void testSimpleBadgeClassJsonValid() { + assertDoesNotThrow(()->{ + Report report = validator.run(Samples.OB20.JSON.SIMPLE_BADGECLASS.asFileResource()); + if(verbose) PrintHelper.print(report, true); + assertValid(report); + }); + } + + + @Nested static class WarningTests { @BeforeAll