code cleanup: exception clauses

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5015 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
Xavier Le Vourch
2007-01-31 00:02:39 +00:00
parent ee5a39d4c5
commit eb249bf9bc

View File

@ -29,7 +29,7 @@ public class PropertyAccessorTest extends SimpleAggregatorTst {
return true;
}
public void testIntegers() throws ReportException {
public void testIntegers() {
rule.setProperty(NonRuleWithAllPropertyTypes.singleInt, new Integer(0));
assertTrue(rule.getIntProperty(NonRuleWithAllPropertyTypes.singleInt) == 0);
@ -54,7 +54,7 @@ public class PropertyAccessorTest extends SimpleAggregatorTst {
assertTrue(exceptionOccurred);
}
public void testBooleans() throws ReportException {
public void testBooleans() {
rule.setProperty(NonRuleWithAllPropertyTypes.singleBool, Boolean.FALSE);
assertFalse(rule.getBooleanProperty(NonRuleWithAllPropertyTypes.singleBool));
@ -104,7 +104,7 @@ public class PropertyAccessorTest extends SimpleAggregatorTst {
// assertTrue(exceptionOccurred);
// }
public void testStrings() throws ReportException {
public void testStrings() {
rule.setProperty(NonRuleWithAllPropertyTypes.singleStr, "brian");
assertEquals(rule.getStringProperty(NonRuleWithAllPropertyTypes.singleStr), "brian");