From 834b9848d661bf00020a6b237626c42724109692 Mon Sep 17 00:00:00 2001 From: Brian Remedios Date: Tue, 17 Oct 2006 00:18:07 +0000 Subject: [PATCH] rm calls to deprecated methods in test suite git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4689 51baf565-9d33-0410-a72c-fc3788e3496d --- .../sourceforge/pmd/properties/PropertyAccessorTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pmd/regress/test/net/sourceforge/pmd/properties/PropertyAccessorTest.java b/pmd/regress/test/net/sourceforge/pmd/properties/PropertyAccessorTest.java index 6a19e9e89e..a2fac77642 100644 --- a/pmd/regress/test/net/sourceforge/pmd/properties/PropertyAccessorTest.java +++ b/pmd/regress/test/net/sourceforge/pmd/properties/PropertyAccessorTest.java @@ -32,7 +32,7 @@ public class PropertyAccessorTest extends SimpleAggregatorTst { public void testIntegers() throws ReportException { rule.setProperty(NonRuleWithAllPropertyTypes.singleInt, new Integer(0)); - assertTrue(rule.getIntProperty("singleInt") == 0); + assertTrue(rule.getIntProperty(NonRuleWithAllPropertyTypes.singleInt) == 0); rule.setProperties(NonRuleWithAllPropertyTypes.multiInt, new Object[] {new Integer(0), new Integer(1)}); assertTrue(areEqual(rule.getIntProperties(NonRuleWithAllPropertyTypes.multiInt), new int[]{0, 1})); @@ -57,7 +57,7 @@ public class PropertyAccessorTest extends SimpleAggregatorTst { public void testBooleans() throws ReportException { rule.setProperty(NonRuleWithAllPropertyTypes.singleBool, Boolean.FALSE); - assertFalse(rule.getBooleanProperty("singleBool")); + assertFalse(rule.getBooleanProperty(NonRuleWithAllPropertyTypes.singleBool)); rule.setProperties(NonRuleWithAllPropertyTypes.multiBool, new Boolean[] {Boolean.TRUE, Boolean.FALSE}); assertTrue(areEqual(rule.getBooleanProperties(NonRuleWithAllPropertyTypes.multiBool), new boolean[]{true, false})); @@ -107,7 +107,7 @@ public class PropertyAccessorTest extends SimpleAggregatorTst { public void testStrings() throws ReportException { rule.setProperty(NonRuleWithAllPropertyTypes.singleStr, "brian"); - assertEquals(rule.getStringProperty("singleStr"), "brian"); + assertEquals(rule.getStringProperty(NonRuleWithAllPropertyTypes.singleStr), "brian"); rule.setProperties(NonRuleWithAllPropertyTypes.multiStr, new String[] {"hello", "world"}); assertTrue(CollectionUtil.arraysAreEqual(rule.getStringProperties(NonRuleWithAllPropertyTypes.multiStr), new String[] {"hello", "world"}));