Repository: logging-log4j2 Updated Branches: refs/heads/LOG4J2-1986 a5bb49876 -> f1bb43c55
LOG4J2-1986 Fix XML and YAML tests Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/f1bb43c5 Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/f1bb43c5 Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/f1bb43c5 Branch: refs/heads/LOG4J2-1986 Commit: f1bb43c5579d058aee9134b3c5b164e2e5eae82e Parents: a5bb498 Author: Mikael Ståldal <[email protected]> Authored: Sun Jul 23 21:53:41 2017 +0200 Committer: Mikael Ståldal <[email protected]> Committed: Sun Jul 23 21:53:41 2017 +0200 ---------------------------------------------------------------------- .../apache/logging/log4j/core/parser/XmlLogEventParserTest.java | 2 +- .../apache/logging/log4j/core/parser/YamlLogEventParserTest.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/f1bb43c5/log4j-core/src/test/java/org/apache/logging/log4j/core/parser/XmlLogEventParserTest.java ---------------------------------------------------------------------- diff --git a/log4j-core/src/test/java/org/apache/logging/log4j/core/parser/XmlLogEventParserTest.java b/log4j-core/src/test/java/org/apache/logging/log4j/core/parser/XmlLogEventParserTest.java index 802b7d4..1d8f3c1 100644 --- a/log4j-core/src/test/java/org/apache/logging/log4j/core/parser/XmlLogEventParserTest.java +++ b/log4j-core/src/test/java/org/apache/logging/log4j/core/parser/XmlLogEventParserTest.java @@ -98,7 +98,7 @@ public class XmlLogEventParserTest extends LogEventParserTest { @Test(expected = ParseException.class) public void testStringInvalidProperty() throws ParseException { - parser.parseFrom("{\"foo\":\"bar\"}"); + parser.parseFrom("<Event><foo>bar</foo></Event>"); } @Test http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/f1bb43c5/log4j-core/src/test/java/org/apache/logging/log4j/core/parser/YamlLogEventParserTest.java ---------------------------------------------------------------------- diff --git a/log4j-core/src/test/java/org/apache/logging/log4j/core/parser/YamlLogEventParserTest.java b/log4j-core/src/test/java/org/apache/logging/log4j/core/parser/YamlLogEventParserTest.java index 157e376..c4a7de2 100644 --- a/log4j-core/src/test/java/org/apache/logging/log4j/core/parser/YamlLogEventParserTest.java +++ b/log4j-core/src/test/java/org/apache/logging/log4j/core/parser/YamlLogEventParserTest.java @@ -92,7 +92,7 @@ public class YamlLogEventParserTest extends LogEventParserTest { @Test(expected = ParseException.class) public void testStringInvalidProperty() throws ParseException { - parser.parseFrom("{\"foo\":\"bar\"}"); + parser.parseFrom("---\nfoo: \"bar\"\n"); } @Test
