Added QrCode renderer

This commit is contained in:
Erik C. Thauvin 2023-03-19 03:06:19 -07:00
parent b97abc7091
commit b218313ed3
5 changed files with 106 additions and 5 deletions

View file

@ -45,6 +45,14 @@ class TestFormat {
+ foo + "</a>");
}
@Test
void testQrCode() {
var t = TemplateFactory.SVG.get("qrCode");
var foo = "https://example.com/";
t.setAttribute(TestCase.FOO, foo);
assertThat(t.getContent()).startsWith("<?xml").contains("<desc>" + foo + "</desc").contains("width=\"200\"");
}
@Test
void testShortenUrl() {
var t = TemplateFactory.HTML.get("shortenUrl");