updated expected exception messages

This commit is contained in:
Rick Giles 2003-05-05 22:50:38 +00:00
parent e9b6614e56
commit 2d4604aba6
1 changed files with 8 additions and 8 deletions

View File

@ -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\"."));
}
}