Added simple png test

This commit is contained in:
Xavi Aracil 2022-11-24 14:37:48 +01:00
parent a629fc8372
commit 24a2e02fe6
3 changed files with 13 additions and 0 deletions

View File

@ -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 @Nested
static class WarningTests { static class WarningTests {
@BeforeAll @BeforeAll

View File

@ -48,5 +48,9 @@ public class Samples {
// original: test_graph:test_verify_with_redirection // original: test_graph:test_verify_with_redirection
public final static Sample WARNING_REDIRECTION_ASSERTION_JSON = new Sample("ob20/warning-with-redirection.json", true); 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);
}
} }
} }

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB