dion 2002/10/24 17:31:15 Modified: beanutils/src/test/org/apache/commons/beanutils PropertyUtilsTestCase.java DynaResultSetTestCase.java Log: Removed unused code. All tests pass using maven test Revision Changes Path 1.25 +9 -25 jakarta-commons/beanutils/src/test/org/apache/commons/beanutils/PropertyUtilsTestCase.java Index: PropertyUtilsTestCase.java =================================================================== RCS file: /home/cvs/jakarta-commons/beanutils/src/test/org/apache/commons/beanutils/PropertyUtilsTestCase.java,v retrieving revision 1.24 retrieving revision 1.25 diff -u -r1.24 -r1.25 --- PropertyUtilsTestCase.java 21 Oct 2002 19:53:15 -0000 1.24 +++ PropertyUtilsTestCase.java 25 Oct 2002 00:31:14 -0000 1.25 @@ -115,13 +115,6 @@ /** - * The fully qualified class name of our private bean class. - */ - private static final String PRIVATE_BEAN_CLASS = - "org.apache.commons.beanutils.priv.PrivateBean"; - - - /** * The fully qualified class name of our private directly * implemented interface. */ @@ -1503,9 +1496,7 @@ public void testGetNestedUnknown() { try { - Object value = - PropertyUtils.getNestedProperty - (bean, "nested.unknown"); + PropertyUtils.getNestedProperty(bean, "nested.unknown"); fail("Should have thrown NoSuchMethodException"); } catch (IllegalAccessException e) { fail("IllegalAccessException"); @@ -1526,9 +1517,7 @@ public void testGetNestedWriteOnly() { try { - Object value = - PropertyUtils.getNestedProperty - (bean, "writeOnlyProperty"); + PropertyUtils.getNestedProperty(bean, "writeOnlyProperty"); fail("Should have thrown NoSuchMethodException"); } catch (IllegalAccessException e) { fail("IllegalAccessException"); @@ -1979,9 +1968,7 @@ public void testGetSimpleUnknown() { try { - Object value = - PropertyUtils.getSimpleProperty(bean, - "unknown"); + PropertyUtils.getSimpleProperty(bean, "unknown"); fail("Should have thrown NoSuchMethodException"); } catch (IllegalAccessException e) { fail("IllegalAccessException"); @@ -2002,9 +1989,7 @@ public void testGetSimpleWriteOnly() { try { - Object value = - PropertyUtils.getSimpleProperty(bean, - "writeOnlyProperty"); + PropertyUtils.getSimpleProperty(bean, "writeOnlyProperty"); fail("Should have thrown NoSuchMethodException"); } catch (IllegalAccessException e) { fail("IllegalAccessException"); @@ -3424,8 +3409,7 @@ // Actually call the reader method we received try { - Object value = - reader.invoke(bean, new Class[0]); + reader.invoke(bean, new Class[0]); } catch (Throwable t) { fail("Call for " + properties[i] + ": " + t); } 1.2 +5 -5 jakarta-commons/beanutils/src/test/org/apache/commons/beanutils/DynaResultSetTestCase.java Index: DynaResultSetTestCase.java =================================================================== RCS file: /home/cvs/jakarta-commons/beanutils/src/test/org/apache/commons/beanutils/DynaResultSetTestCase.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- DynaResultSetTestCase.java 12 Jul 2002 22:38:21 -0000 1.1 +++ DynaResultSetTestCase.java 25 Oct 2002 00:31:14 -0000 1.2 @@ -230,7 +230,7 @@ assertNotNull("iterator exists", rows); int n = 0; while (rows.hasNext()) { - DynaBean row = (DynaBean) rows.next(); + rows.next(); n++; if (n > 10) { fail("Returned too many rows");
-- To unsubscribe, e-mail: <mailto:commons-dev-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:commons-dev-help@;jakarta.apache.org>