From 2d4604aba68358de4ef011f369face63f8ec2533 Mon Sep 17 00:00:00 2001 From: Rick Giles Date: Mon, 5 May 2003 22:50:38 +0000 Subject: [PATCH] updated expected exception messages --- .../checkstyle/ConfigurationLoaderTest.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/tests/com/puppycrawl/tools/checkstyle/ConfigurationLoaderTest.java b/src/tests/com/puppycrawl/tools/checkstyle/ConfigurationLoaderTest.java index 86b64dad8..06f4b7114 100644 --- a/src/tests/com/puppycrawl/tools/checkstyle/ConfigurationLoaderTest.java +++ b/src/tests/com/puppycrawl/tools/checkstyle/ConfigurationLoaderTest.java @@ -46,8 +46,8 @@ public class ConfigurationLoaderTest extends TestCase catch (CheckstyleException ex) { assertTrue( ex.getMessage().endsWith( - "Attribute \"name\" is required and must be specified " - + "for element type \"property\".")); + "Attribute \"nam\" is not declared " + + "for element \"property\".")); } } @@ -60,8 +60,8 @@ public class ConfigurationLoaderTest extends TestCase catch (CheckstyleException ex) { assertTrue( ex.getMessage().endsWith( - "Attribute \"value\" is required and must be specified " - + "for element type \"property\".")); + "Attribute \"valu\" is not declared " + + "for element \"property\".")); } } @@ -74,8 +74,8 @@ public class ConfigurationLoaderTest extends TestCase catch (CheckstyleException ex) { assertTrue( ex.getMessage().endsWith( - "Attribute \"name\" is required and must be specified " - + "for element type \"module\".")); + "Attribute \"nam\" is not declared " + + "for element \"module\".")); } } @@ -88,8 +88,8 @@ public class ConfigurationLoaderTest extends TestCase catch (CheckstyleException ex) { assertTrue( ex.getMessage().endsWith( - "Document root element \"property\", must match DOCTYPE " - + "root \"module\".")); + "Root element type is \"property\", but was declared to " + + "be \"module\".")); } }