From 24a2e02fe6b2c1e022d5f5cef8201fb342b12b9f Mon Sep 17 00:00:00 2001 From: Xavi Aracil Date: Thu, 24 Nov 2022 14:37:48 +0100 Subject: [PATCH] Added simple png test --- .../java/org/oneedtech/inspect/vc/OB20Tests.java | 9 +++++++++ .../java/org/oneedtech/inspect/vc/Samples.java | 4 ++++ .../src/test/resources/ob20/simple-badge.png | Bin 0 -> 1302 bytes 3 files changed, 13 insertions(+) create mode 100644 inspector-vc/src/test/resources/ob20/simple-badge.png 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 bfbc0e9..6cb29be 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 @@ -39,6 +39,15 @@ public class OB20Tests { }); } + @Test + void testSimplePNGPlainValid() { + assertDoesNotThrow(()->{ + Report report = validator.run(Samples.OB20.PNG.SIMPLE_JSON_PNG.asFileResource()); + if(verbose) PrintHelper.print(report, true); + assertValid(report); + }); + } + @Nested static class WarningTests { @BeforeAll diff --git a/inspector-vc/src/test/java/org/oneedtech/inspect/vc/Samples.java b/inspector-vc/src/test/java/org/oneedtech/inspect/vc/Samples.java index c972edd..904369a 100644 --- a/inspector-vc/src/test/java/org/oneedtech/inspect/vc/Samples.java +++ b/inspector-vc/src/test/java/org/oneedtech/inspect/vc/Samples.java @@ -48,5 +48,9 @@ public class Samples { // original: test_graph:test_verify_with_redirection public final static Sample WARNING_REDIRECTION_ASSERTION_JSON = new Sample("ob20/warning-with-redirection.json", true); } + + public static final class PNG { + public final static Sample SIMPLE_JSON_PNG = new Sample("ob20/simple-badge.png", true); + } } } diff --git a/inspector-vc/src/test/resources/ob20/simple-badge.png b/inspector-vc/src/test/resources/ob20/simple-badge.png new file mode 100644 index 0000000000000000000000000000000000000000..ea3669368b6926975ae5804b4a6957f851655965 GIT binary patch literal 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