forked from phoedos/pmd
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:
@ -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");
|
||||
|
Reference in New Issue
Block a user