X-Git-Url: https://juplo.de/gitweb/?a=blobdiff_plain;f=src%2Ftest%2Fjava%2Fde%2Fjuplo%2Fthymeleaf%2FImportVariablesAttrProcessorTest.java;h=d36c26d684e098fc496e76a3583ce597f4af0057;hb=700dc21ccb3b89bf961e908ccdefb8525791bd22;hp=e8e188eef142a52bea102234969ebe4235e64c9e;hpb=5c0633a27a9c42d6fc1deb6974c4a495375d99d5;p=juplo-dialect diff --git a/src/test/java/de/juplo/thymeleaf/ImportVariablesAttrProcessorTest.java b/src/test/java/de/juplo/thymeleaf/ImportVariablesAttrProcessorTest.java index e8e188e..d36c26d 100644 --- a/src/test/java/de/juplo/thymeleaf/ImportVariablesAttrProcessorTest.java +++ b/src/test/java/de/juplo/thymeleaf/ImportVariablesAttrProcessorTest.java @@ -23,51 +23,51 @@ public class ImportVariablesAttrProcessorTest { Matcher matcher; - matcher = ImportVariablesAttrProcessor.PATTERN.matcher("{}"); + matcher = ImportVariablesAttributeProcessor.PATTERN.matcher("{}"); assertTrue(matcher.matches()); - matcher = ImportVariablesAttrProcessor.PATTERN.matcher(" { } "); + matcher = ImportVariablesAttributeProcessor.PATTERN.matcher(" { } "); assertTrue(matcher.matches()); - matcher = ImportVariablesAttrProcessor.PATTERN.matcher("\t{\t}\t"); + matcher = ImportVariablesAttributeProcessor.PATTERN.matcher("\t{\t}\t"); assertTrue(matcher.matches()); - matcher = ImportVariablesAttrProcessor.PATTERN.matcher("\n{\n}\n"); + matcher = ImportVariablesAttributeProcessor.PATTERN.matcher("\n{\n}\n"); assertTrue(matcher.matches()); - matcher = ImportVariablesAttrProcessor.PATTERN.matcher(" \t\n{ \t\n} \t\n"); + matcher = ImportVariablesAttributeProcessor.PATTERN.matcher(" \t\n{ \t\n} \t\n"); assertTrue(matcher.matches()); - matcher = ImportVariablesAttrProcessor.PATTERN.matcher("{\"foo\":\"bar\",\"foobar\":{\"foo\":\"bar\"}"); + matcher = ImportVariablesAttributeProcessor.PATTERN.matcher("{\"foo\":\"bar\",\"foobar\":{\"foo\":\"bar\"}"); assertTrue(matcher.matches()); - matcher = ImportVariablesAttrProcessor.PATTERN.matcher(" { \"foo\":\"bar\", \"foobar\": { \"foo\": \"bar\" } "); + matcher = ImportVariablesAttributeProcessor.PATTERN.matcher(" { \"foo\":\"bar\", \"foobar\": { \"foo\": \"bar\" } "); assertTrue(matcher.matches()); - matcher = ImportVariablesAttrProcessor.PATTERN.matcher("\t{\t\"foo\":\t\"bar\"\t,\t\"foobar\":\t{\t\"foo\":\"bar\"\t}"); + matcher = ImportVariablesAttributeProcessor.PATTERN.matcher("\t{\t\"foo\":\t\"bar\"\t,\t\"foobar\":\t{\t\"foo\":\"bar\"\t}"); assertTrue(matcher.matches()); - matcher = ImportVariablesAttrProcessor.PATTERN.matcher("\n{\n\"foo\":\n\"bar\"\n,\n\"foobar\":\n{\n\"foo\":\"bar\"\n}"); + matcher = ImportVariablesAttributeProcessor.PATTERN.matcher("\n{\n\"foo\":\n\"bar\"\n,\n\"foobar\":\n{\n\"foo\":\"bar\"\n}"); assertTrue(matcher.matches()); - matcher = ImportVariablesAttrProcessor.PATTERN.matcher("\n\t {\n\t \"foo\":\n\t \"bar\"\n\t ,\n\t \"foobar\":\n\t {\n\t \"foo\":\"bar\"\n\t }"); + matcher = ImportVariablesAttributeProcessor.PATTERN.matcher("\n\t {\n\t \"foo\":\n\t \"bar\"\n\t ,\n\t \"foobar\":\n\t {\n\t \"foo\":\"bar\"\n\t }"); assertTrue(matcher.matches()); String json; json = read("/json/1.json"); - matcher = ImportVariablesAttrProcessor.PATTERN.matcher(json); + matcher = ImportVariablesAttributeProcessor.PATTERN.matcher(json); assertTrue(matcher.matches()); json = read("/json/2.json"); - matcher = ImportVariablesAttrProcessor.PATTERN.matcher(json); + matcher = ImportVariablesAttributeProcessor.PATTERN.matcher(json); assertTrue(matcher.matches()); json = read("/json/3.json"); - matcher = ImportVariablesAttrProcessor.PATTERN.matcher(json); + matcher = ImportVariablesAttributeProcessor.PATTERN.matcher(json); assertTrue(matcher.matches()); - matcher = ImportVariablesAttrProcessor.PATTERN.matcher("foo:bar"); + matcher = ImportVariablesAttributeProcessor.PATTERN.matcher("foo:bar"); assertTrue(matcher.matches()); assertNull(matcher.group(1)); assertNull(matcher.group(2)); assertEquals("foo:bar", matcher.group(3)); - matcher = ImportVariablesAttrProcessor.PATTERN.matcher("replace:foo"); + matcher = ImportVariablesAttributeProcessor.PATTERN.matcher("replace:foo"); assertTrue(matcher.matches()); assertNull(matcher.group(1)); assertNull(matcher.group(2)); assertEquals("foo", matcher.group(3)); - matcher = ImportVariablesAttrProcessor.PATTERN.matcher("merge:foo"); + matcher = ImportVariablesAttributeProcessor.PATTERN.matcher("merge:foo"); assertTrue(matcher.matches()); assertEquals("merge", matcher.group(1)); assertNull(matcher.group(2));