From 0dbbf3b83a9832eb381db6dc777916e9d7fa676f Mon Sep 17 00:00:00 2001 From: Michal Kordas Date: Wed, 5 Aug 2015 21:20:34 +0200 Subject: [PATCH] Suppress wrong root element in tests. #1555 --- .../puppycrawl/tools/checkstyle/ConfigurationLoaderTest.java | 2 +- .../tools/checkstyle/configs/missing_config_parent.xml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/test/java/com/puppycrawl/tools/checkstyle/ConfigurationLoaderTest.java b/src/test/java/com/puppycrawl/tools/checkstyle/ConfigurationLoaderTest.java index 2bfe1c64c..6dfe7cf5f 100644 --- a/src/test/java/com/puppycrawl/tools/checkstyle/ConfigurationLoaderTest.java +++ b/src/test/java/com/puppycrawl/tools/checkstyle/ConfigurationLoaderTest.java @@ -140,7 +140,7 @@ public class ConfigurationLoaderTest { assertTrue( ex.getMessage().endsWith( "Document root element \"property\", must match DOCTYPE " - + "root \"module\".:7:38")); + + "root \"module\".:8:38")); } } diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/configs/missing_config_parent.xml b/src/test/resources/com/puppycrawl/tools/checkstyle/configs/missing_config_parent.xml index 4ab4de312..07768c62b 100644 --- a/src/test/resources/com/puppycrawl/tools/checkstyle/configs/missing_config_parent.xml +++ b/src/test/resources/com/puppycrawl/tools/checkstyle/configs/missing_config_parent.xml @@ -4,5 +4,6 @@ "-//Puppy Crawl//DTD Check Configuration 1.1//EN" "http://www.puppycrawl.com/dtds/configuration_1_1.dtd"> +