You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by di...@apache.org on 2005/02/26 13:52:08 UTC
svn commit: r155401 [2/4] - in jakarta/commons/proper/beanutils/trunk: ./
optional/bean-collections/ optional/bean-collections/src/conf/
optional/bean-collections/src/java/
optional/bean-collections/src/java/org/apache/commons/beanutils/
optional/bean-collections/src/test/org/apache/commons/beanutils/
optional/bean-collections/xdocs/ src/conf/ src/java/
src/java/org/apache/commons/beanutils/
src/java/org/apache/commons/beanutils/converters/
src/java/org/apache/commons/beanutils/locale/
src/java/org/apache/commons/beanutils/locale/converters/
src/java/org/apache/commons/collections/
src/test/org/apache/commons/beanutils/
src/test/org/apache/commons/beanutils/converters/
src/test/org/apache/commons/beanutils/locale/
src/test/org/apache/commons/beanutils/locale/converters/
src/test/org/apache/commons/beanutils/priv/
src/test/org/apache/commons/collections/
src/test/org/apache/commons/collections/keyvalue/ xdocs/ xdocs/style/
Modified: jakarta/commons/proper/beanutils/trunk/optional/bean-collections/src/java/org/apache/commons/beanutils/BeanToPropertyValueTransformer.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/beanutils/trunk/optional/bean-collections/src/java/org/apache/commons/beanutils/BeanToPropertyValueTransformer.java?view=diff&r1=155400&r2=155401
==============================================================================
--- jakarta/commons/proper/beanutils/trunk/optional/bean-collections/src/java/org/apache/commons/beanutils/BeanToPropertyValueTransformer.java (original)
+++ jakarta/commons/proper/beanutils/trunk/optional/bean-collections/src/java/org/apache/commons/beanutils/BeanToPropertyValueTransformer.java Sat Feb 26 04:51:00 2005
@@ -12,194 +12,194 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
- */
-
-package org.apache.commons.beanutils;
-
-import org.apache.commons.collections.Transformer;
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
-
-import java.lang.reflect.InvocationTargetException;
-
-
-/**
- * <p><code>Transformer</code> that outputs a property value.</p>
- *
- * <p>An implementation of <code>org.apache.commons.collections.Transformer</code> that transforms
- * the object provided by returning the value of a specified property of the object. The
- * constructor for <code>BeanToPropertyValueTransformer</code> requires the name of the property
- * that will be used in the transformation. The property can be a simple, nested, indexed, or
- * mapped property as defined by <code>org.apache.commons.beanutils.PropertyUtils</code>. If any
- * object in the property path specified by <code>propertyName</code> is <code>null</code> then the
- * outcome is based on the value of the <code>ignoreNull</code> attribute.
- * </p>
- *
- * <p>
- * A typical usage might look like:
- * <code><pre>
- * // create the transformer
- * BeanToPropertyValueTransformer transformer = new BeanToPropertyValueTransformer( "person.address.city" );
- *
- * // transform the Collection
- * Collection peoplesCities = CollectionUtils.collect( peopleCollection, transformer );
- * </pre></code>
- * </p>
- *
- * <p>
- * This would take a <code>Collection</code> of person objects and return a <code>Collection</code>
- * of objects which represents the cities in which each person lived. Assuming...
- * <ul>
- * <li>
- * The top level object in the <code>peeopleCollection</code> is an object which represents a
- * person.
- * </li>
- * <li>
- * The person object has a <code>getAddress()</code> method which returns an object which
- * represents a person's address.
- * </li>
- * <li>
- * The address object has a <code>getCity()</code> method which returns an object which
- * represents the city in which a person lives.
- * </li>
- * </ul>
- *
- * @author Norm Deane
- * @see org.apache.commons.beanutils.PropertyUtils
- * @see org.apache.commons.collections.Transformer
- */
-public class BeanToPropertyValueTransformer implements Transformer {
-
- /** For logging. */
- private final Log log = LogFactory.getLog(this.getClass());
-
- /** The name of the property that will be used in the transformation of the object. */
- private String propertyName;
-
- /**
- * <p>Should null objects on the property path throw an <code>IllegalArgumentException</code>?</p>
- * <p>
- * Determines whether <code>null</code> objects in the property path will genenerate an
- * <code>IllegalArgumentException</code> or not. If set to <code>true</code> then if any objects
- * in the property path evaluate to <code>null</code> then the
- * <code>IllegalArgumentException</code> throw by <code>PropertyUtils</code> will be logged but
- * not rethrown and <code>null</code> will be returned. If set to <code>false</code> then if any
- * objects in the property path evaluate to <code>null</code> then the
- * <code>IllegalArgumentException</code> throw by <code>PropertyUtils</code> will be logged and
- * rethrown.
- * </p>
- */
- private boolean ignoreNull;
-
- /**
- * Constructs a Transformer which does not ignore nulls.
- * Constructor which takes the name of the property that will be used in the transformation and
- * assumes <code>ignoreNull</code> to be <code>false</code>.
- *
- * @param propertyName The name of the property that will be used in the transformation.
- * @throws IllegalArgumentException If the <code>propertyName</code> is <code>null</code> or
- * empty.
- */
- public BeanToPropertyValueTransformer(String propertyName) {
- this(propertyName, false);
- }
-
- /**
- * Constructs a Transformer and sets ignoreNull.
- * Constructor which takes the name of the property that will be used in the transformation and
- * a boolean which determines whether <code>null</code> objects in the property path will
- * genenerate an <code>IllegalArgumentException</code> or not.
- *
- * @param propertyName The name of the property that will be used in the transformation.
- * @param ignoreNull Determines whether <code>null</code> objects in the property path will
- * genenerate an <code>IllegalArgumentException</code> or not.
- * @throws IllegalArgumentException If the <code>propertyName</code> is <code>null</code> or
- * empty.
- */
- public BeanToPropertyValueTransformer(String propertyName, boolean ignoreNull) {
- super();
-
- if ((propertyName != null) && (propertyName.length() > 0)) {
- this.propertyName = propertyName;
- this.ignoreNull = ignoreNull;
- } else {
- throw new IllegalArgumentException(
- "propertyName cannot be null or empty");
- }
- }
-
- /**
- * Returns the value of the property named in the transformer's constructor for
- * the object provided. If any object in the property path leading up to the target property is
- * <code>null</code> then the outcome will be based on the value of the <code>ignoreNull</code>
- * attribute. By default, <code>ignoreNull</code> is <code>false</code> and would result in an
- * <code>IllegalArgumentException</code> if an object in the property path leading up to the
- * target property is <code>null</code>.
- *
- * @param object The object to be transformed.
- * @return The value of the property named in the transformer's constructor for the object
- * provided.
- * @throws IllegalArgumentException If an IllegalAccessException, InvocationTargetException, or
- * NoSuchMethodException is thrown when trying to access the property specified on the object
- * provided. Or if an object in the property path provided is <code>null</code> and
- * <code>ignoreNull</code> is set to <code>false</code>.
- */
- public Object transform(Object object) {
-
- Object propertyValue = null;
-
- try {
- propertyValue = PropertyUtils.getProperty(object, propertyName);
- } catch (IllegalArgumentException e) {
- final String errorMsg = "Problem during transformation. Null value encountered in property path...";
-
- if (ignoreNull) {
- log.warn("WARNING: " + errorMsg, e);
- } else {
- log.error("ERROR: " + errorMsg, e);
- throw e;
- }
- } catch (IllegalAccessException e) {
- final String errorMsg = "Unable to access the property provided.";
- log.error(errorMsg, e);
- throw new IllegalArgumentException(errorMsg);
- } catch (InvocationTargetException e) {
- final String errorMsg = "Exception occurred in property's getter";
- log.error(errorMsg, e);
- throw new IllegalArgumentException(errorMsg);
- } catch (NoSuchMethodException e) {
- final String errorMsg = "No property found for name [" +
- propertyName + "]";
- log.error(errorMsg, e);
- throw new IllegalArgumentException(errorMsg);
- }
-
- return propertyValue;
- }
-
- /**
- * Returns the name of the property that will be used in the transformation of the bean.
- *
- * @return The name of the property that will be used in the transformation of the bean.
- */
- public String getPropertyName() {
- return propertyName;
- }
-
- /**
- * Returns the flag which determines whether <code>null</code> objects in the property path will
- * genenerate an <code>IllegalArgumentException</code> or not. If set to <code>true</code> then
- * if any objects in the property path evaluate to <code>null</code> then the
- * <code>IllegalArgumentException</code> throw by <code>PropertyUtils</code> will be logged but
- * not rethrown and <code>null</code> will be returned. If set to <code>false</code> then if any
- * objects in the property path evaluate to <code>null</code> then the
- * <code>IllegalArgumentException</code> throw by <code>PropertyUtils</code> will be logged and
- * rethrown.
- *
- * @return The flag which determines whether <code>null</code> objects in the property path will
- * genenerate an <code>IllegalArgumentException</code> or not.
- */
- public boolean isIgnoreNull() {
- return ignoreNull;
- }
-}
+ */
+
+package org.apache.commons.beanutils;
+
+import org.apache.commons.collections.Transformer;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+
+import java.lang.reflect.InvocationTargetException;
+
+
+/**
+ * <p><code>Transformer</code> that outputs a property value.</p>
+ *
+ * <p>An implementation of <code>org.apache.commons.collections.Transformer</code> that transforms
+ * the object provided by returning the value of a specified property of the object. The
+ * constructor for <code>BeanToPropertyValueTransformer</code> requires the name of the property
+ * that will be used in the transformation. The property can be a simple, nested, indexed, or
+ * mapped property as defined by <code>org.apache.commons.beanutils.PropertyUtils</code>. If any
+ * object in the property path specified by <code>propertyName</code> is <code>null</code> then the
+ * outcome is based on the value of the <code>ignoreNull</code> attribute.
+ * </p>
+ *
+ * <p>
+ * A typical usage might look like:
+ * <code><pre>
+ * // create the transformer
+ * BeanToPropertyValueTransformer transformer = new BeanToPropertyValueTransformer( "person.address.city" );
+ *
+ * // transform the Collection
+ * Collection peoplesCities = CollectionUtils.collect( peopleCollection, transformer );
+ * </pre></code>
+ * </p>
+ *
+ * <p>
+ * This would take a <code>Collection</code> of person objects and return a <code>Collection</code>
+ * of objects which represents the cities in which each person lived. Assuming...
+ * <ul>
+ * <li>
+ * The top level object in the <code>peeopleCollection</code> is an object which represents a
+ * person.
+ * </li>
+ * <li>
+ * The person object has a <code>getAddress()</code> method which returns an object which
+ * represents a person's address.
+ * </li>
+ * <li>
+ * The address object has a <code>getCity()</code> method which returns an object which
+ * represents the city in which a person lives.
+ * </li>
+ * </ul>
+ *
+ * @author Norm Deane
+ * @see org.apache.commons.beanutils.PropertyUtils
+ * @see org.apache.commons.collections.Transformer
+ */
+public class BeanToPropertyValueTransformer implements Transformer {
+
+ /** For logging. */
+ private final Log log = LogFactory.getLog(this.getClass());
+
+ /** The name of the property that will be used in the transformation of the object. */
+ private String propertyName;
+
+ /**
+ * <p>Should null objects on the property path throw an <code>IllegalArgumentException</code>?</p>
+ * <p>
+ * Determines whether <code>null</code> objects in the property path will genenerate an
+ * <code>IllegalArgumentException</code> or not. If set to <code>true</code> then if any objects
+ * in the property path evaluate to <code>null</code> then the
+ * <code>IllegalArgumentException</code> throw by <code>PropertyUtils</code> will be logged but
+ * not rethrown and <code>null</code> will be returned. If set to <code>false</code> then if any
+ * objects in the property path evaluate to <code>null</code> then the
+ * <code>IllegalArgumentException</code> throw by <code>PropertyUtils</code> will be logged and
+ * rethrown.
+ * </p>
+ */
+ private boolean ignoreNull;
+
+ /**
+ * Constructs a Transformer which does not ignore nulls.
+ * Constructor which takes the name of the property that will be used in the transformation and
+ * assumes <code>ignoreNull</code> to be <code>false</code>.
+ *
+ * @param propertyName The name of the property that will be used in the transformation.
+ * @throws IllegalArgumentException If the <code>propertyName</code> is <code>null</code> or
+ * empty.
+ */
+ public BeanToPropertyValueTransformer(String propertyName) {
+ this(propertyName, false);
+ }
+
+ /**
+ * Constructs a Transformer and sets ignoreNull.
+ * Constructor which takes the name of the property that will be used in the transformation and
+ * a boolean which determines whether <code>null</code> objects in the property path will
+ * genenerate an <code>IllegalArgumentException</code> or not.
+ *
+ * @param propertyName The name of the property that will be used in the transformation.
+ * @param ignoreNull Determines whether <code>null</code> objects in the property path will
+ * genenerate an <code>IllegalArgumentException</code> or not.
+ * @throws IllegalArgumentException If the <code>propertyName</code> is <code>null</code> or
+ * empty.
+ */
+ public BeanToPropertyValueTransformer(String propertyName, boolean ignoreNull) {
+ super();
+
+ if ((propertyName != null) && (propertyName.length() > 0)) {
+ this.propertyName = propertyName;
+ this.ignoreNull = ignoreNull;
+ } else {
+ throw new IllegalArgumentException(
+ "propertyName cannot be null or empty");
+ }
+ }
+
+ /**
+ * Returns the value of the property named in the transformer's constructor for
+ * the object provided. If any object in the property path leading up to the target property is
+ * <code>null</code> then the outcome will be based on the value of the <code>ignoreNull</code>
+ * attribute. By default, <code>ignoreNull</code> is <code>false</code> and would result in an
+ * <code>IllegalArgumentException</code> if an object in the property path leading up to the
+ * target property is <code>null</code>.
+ *
+ * @param object The object to be transformed.
+ * @return The value of the property named in the transformer's constructor for the object
+ * provided.
+ * @throws IllegalArgumentException If an IllegalAccessException, InvocationTargetException, or
+ * NoSuchMethodException is thrown when trying to access the property specified on the object
+ * provided. Or if an object in the property path provided is <code>null</code> and
+ * <code>ignoreNull</code> is set to <code>false</code>.
+ */
+ public Object transform(Object object) {
+
+ Object propertyValue = null;
+
+ try {
+ propertyValue = PropertyUtils.getProperty(object, propertyName);
+ } catch (IllegalArgumentException e) {
+ final String errorMsg = "Problem during transformation. Null value encountered in property path...";
+
+ if (ignoreNull) {
+ log.warn("WARNING: " + errorMsg, e);
+ } else {
+ log.error("ERROR: " + errorMsg, e);
+ throw e;
+ }
+ } catch (IllegalAccessException e) {
+ final String errorMsg = "Unable to access the property provided.";
+ log.error(errorMsg, e);
+ throw new IllegalArgumentException(errorMsg);
+ } catch (InvocationTargetException e) {
+ final String errorMsg = "Exception occurred in property's getter";
+ log.error(errorMsg, e);
+ throw new IllegalArgumentException(errorMsg);
+ } catch (NoSuchMethodException e) {
+ final String errorMsg = "No property found for name [" +
+ propertyName + "]";
+ log.error(errorMsg, e);
+ throw new IllegalArgumentException(errorMsg);
+ }
+
+ return propertyValue;
+ }
+
+ /**
+ * Returns the name of the property that will be used in the transformation of the bean.
+ *
+ * @return The name of the property that will be used in the transformation of the bean.
+ */
+ public String getPropertyName() {
+ return propertyName;
+ }
+
+ /**
+ * Returns the flag which determines whether <code>null</code> objects in the property path will
+ * genenerate an <code>IllegalArgumentException</code> or not. If set to <code>true</code> then
+ * if any objects in the property path evaluate to <code>null</code> then the
+ * <code>IllegalArgumentException</code> throw by <code>PropertyUtils</code> will be logged but
+ * not rethrown and <code>null</code> will be returned. If set to <code>false</code> then if any
+ * objects in the property path evaluate to <code>null</code> then the
+ * <code>IllegalArgumentException</code> throw by <code>PropertyUtils</code> will be logged and
+ * rethrown.
+ *
+ * @return The flag which determines whether <code>null</code> objects in the property path will
+ * genenerate an <code>IllegalArgumentException</code> or not.
+ */
+ public boolean isIgnoreNull() {
+ return ignoreNull;
+ }
+}
Propchange: jakarta/commons/proper/beanutils/trunk/optional/bean-collections/src/java/org/apache/commons/beanutils/BeanToPropertyValueTransformer.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Feb 26 04:51:00 2005
@@ -1 +1 @@
-author date id revision
+Date Author Id Revision HeadURL
Propchange: jakarta/commons/proper/beanutils/trunk/optional/bean-collections/src/java/overview.html
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Feb 26 04:51:00 2005
@@ -1 +1 @@
-author date id revision
+Date Author Id Revision HeadURL
Propchange: jakarta/commons/proper/beanutils/trunk/optional/bean-collections/src/test/org/apache/commons/beanutils/AbstractParent.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Feb 26 04:51:00 2005
@@ -1 +1 @@
-author date id revision
+Date Author Id Revision HeadURL
Propchange: jakarta/commons/proper/beanutils/trunk/optional/bean-collections/src/test/org/apache/commons/beanutils/AlphaBean.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Feb 26 04:51:00 2005
@@ -1 +1 @@
-author date id revision
+Date Author Id Revision HeadURL
Modified: jakarta/commons/proper/beanutils/trunk/optional/bean-collections/src/test/org/apache/commons/beanutils/BeanCollectionsTestSuite.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/beanutils/trunk/optional/bean-collections/src/test/org/apache/commons/beanutils/BeanCollectionsTestSuite.java?view=diff&r1=155400&r2=155401
==============================================================================
--- jakarta/commons/proper/beanutils/trunk/optional/bean-collections/src/test/org/apache/commons/beanutils/BeanCollectionsTestSuite.java (original)
+++ jakarta/commons/proper/beanutils/trunk/optional/bean-collections/src/test/org/apache/commons/beanutils/BeanCollectionsTestSuite.java Sat Feb 26 04:51:00 2005
@@ -29,7 +29,7 @@
* <p>Test suite which runs all the test cases application to beans in collections.
*
* @author <a href="mailto:epugh@upstate.com">Eric Pugh</a>
- * @version $Revision: 1.2 $
+ * @version $Revision$
*/
public class BeanCollectionsTestSuite extends TestCase {
Propchange: jakarta/commons/proper/beanutils/trunk/optional/bean-collections/src/test/org/apache/commons/beanutils/BeanCollectionsTestSuite.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Feb 26 04:51:00 2005
@@ -1 +1 @@
-author date id revision
+Date Author Id Revision HeadURL
Modified: jakarta/commons/proper/beanutils/trunk/optional/bean-collections/src/test/org/apache/commons/beanutils/BeanComparatorTestCase.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/beanutils/trunk/optional/bean-collections/src/test/org/apache/commons/beanutils/BeanComparatorTestCase.java?view=diff&r1=155400&r2=155401
==============================================================================
--- jakarta/commons/proper/beanutils/trunk/optional/bean-collections/src/test/org/apache/commons/beanutils/BeanComparatorTestCase.java (original)
+++ jakarta/commons/proper/beanutils/trunk/optional/bean-collections/src/test/org/apache/commons/beanutils/BeanComparatorTestCase.java Sat Feb 26 04:51:00 2005
@@ -30,7 +30,7 @@
* Test Case for the BeanComparator class.
*
* @author <a href="mailto:epugh@upstate.com">Eric Pugh</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class BeanComparatorTestCase extends TestCase {
Propchange: jakarta/commons/proper/beanutils/trunk/optional/bean-collections/src/test/org/apache/commons/beanutils/BeanComparatorTestCase.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Feb 26 04:51:00 2005
@@ -1 +1 @@
-author date id revision
+Date Author Id Revision HeadURL
Propchange: jakarta/commons/proper/beanutils/trunk/optional/bean-collections/src/test/org/apache/commons/beanutils/BeanPredicateTestCase.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Feb 26 04:51:00 2005
@@ -1 +1 @@
-author date id revision
+Date Author Id Revision HeadURL
Modified: jakarta/commons/proper/beanutils/trunk/optional/bean-collections/src/test/org/apache/commons/beanutils/BeanPropertyValueChangeClosureTest.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/beanutils/trunk/optional/bean-collections/src/test/org/apache/commons/beanutils/BeanPropertyValueChangeClosureTest.java?view=diff&r1=155400&r2=155401
==============================================================================
--- jakarta/commons/proper/beanutils/trunk/optional/bean-collections/src/test/org/apache/commons/beanutils/BeanPropertyValueChangeClosureTest.java (original)
+++ jakarta/commons/proper/beanutils/trunk/optional/bean-collections/src/test/org/apache/commons/beanutils/BeanPropertyValueChangeClosureTest.java Sat Feb 26 04:51:00 2005
@@ -12,310 +12,310 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
- */
-
-package org.apache.commons.beanutils;
-
-import junit.framework.TestCase;
-
-
-/**
- * Test cases for <code>BeanPropertyValueChangeClosure</code>.
- *
- * @author Norm Deane
- */
-public class BeanPropertyValueChangeClosureTest extends TestCase {
-
- private static final Integer expectedIntegerValue = new Integer(123);
- private static final Float expectedFloatValue = new Float(123.123f);
- private static final Double expectedDoubleValue = new Double(567879.12344d);
- private static final Boolean expectedBooleanValue = Boolean.TRUE;
- private static final Byte expectedByteValue = new Byte("12");
-
- /**
- * Constructor for BeanPropertyValueChangeClosureTest.
- *
- * @param name Name of this test case.
- */
- public BeanPropertyValueChangeClosureTest(String name) {
- super(name);
- }
-
- /**
- * Test execute with simple float property and Float value.
- */
- public void testExecuteWithSimpleFloatPropertyAndFloatValue() {
- TestBean testBean = new TestBean();
- new BeanPropertyValueChangeClosure("floatProperty", expectedFloatValue).execute(testBean);
- assertTrue(expectedFloatValue.floatValue() == testBean.getFloatProperty());
- }
-
- /**
- * Test execute with simple float property and String value.
- */
- public void testExecuteWithSimpleFloatPropertyAndStringValue() {
- try {
- new BeanPropertyValueChangeClosure("floatProperty", "123").execute(new TestBean());
- fail("Should have thrown an IllegalArgumentException");
- } catch (IllegalArgumentException e) {
- /* this is what we expect */
- }
- }
-
- /**
- * Test execute with simple float property and Double value.
- */
- public void testExecuteWithSimpleFloatPropertyAndDoubleValue() {
- try {
- new BeanPropertyValueChangeClosure("floatProperty", expectedDoubleValue).execute(new TestBean());
- fail("Should have thrown an IllegalArgumentException");
- } catch (IllegalArgumentException e) {
- /* this is what we expect */
- }
- }
-
- /**
- * Test execute with simple float property and Integer value.
- */
- public void testExecuteWithSimpleFloatPropertyAndIntegerValue() {
- TestBean testBean = new TestBean();
- new BeanPropertyValueChangeClosure("floatProperty", expectedIntegerValue).execute(testBean);
- assertTrue(expectedIntegerValue.floatValue() == testBean.getFloatProperty());
- }
-
- /**
- * Test execute with simple double property and Double value.
- */
- public void testExecuteWithSimpleDoublePropertyAndDoubleValue() {
- TestBean testBean = new TestBean();
- new BeanPropertyValueChangeClosure("doubleProperty", expectedDoubleValue).execute(testBean);
- assertTrue(expectedDoubleValue.doubleValue() == testBean.getDoubleProperty());
- }
-
- /**
- * Test execute with simple double property and String value.
- */
- public void testExecuteWithSimpleDoublePropertyAndStringValue() {
- try {
- new BeanPropertyValueChangeClosure("doubleProperty", "123").execute(new TestBean());
- fail("Should have thrown an IllegalArgumentException");
- } catch (IllegalArgumentException e) {
- /* this is what we expect */
- }
- }
-
- /**
- * Test execute with simple double property and Float value.
- */
- public void testExecuteWithSimpleDoublePropertyAndFloatValue() {
- TestBean testBean = new TestBean();
- new BeanPropertyValueChangeClosure("doubleProperty", expectedFloatValue).execute(testBean);
- assertTrue(expectedFloatValue.doubleValue() == testBean.getDoubleProperty());
- }
-
- /**
- * Test execute with simple double property and Integer value.
- */
- public void testExecuteWithSimpleDoublePropertyAndIntegerValue() {
- TestBean testBean = new TestBean();
- new BeanPropertyValueChangeClosure("doubleProperty", expectedIntegerValue).execute(testBean);
- assertTrue(expectedIntegerValue.doubleValue() == testBean.getDoubleProperty());
- }
-
- /**
- * Test execute with simple int property and Double value.
- */
- public void testExecuteWithSimpleIntPropertyAndDoubleValue() {
- try {
- new BeanPropertyValueChangeClosure("intProperty", expectedDoubleValue).execute(new TestBean());
- fail("Should have thrown an IllegalArgumentException");
- } catch (IllegalArgumentException e) {
- /* this is what we expect */
- }
- }
-
- /**
- * Test execute with simple int property and String value.
- */
- public void testExecuteWithSimpleIntPropertyAndStringValue() {
- try {
- new BeanPropertyValueChangeClosure("intProperty", "123").execute(new TestBean());
- fail("Should have thrown an IllegalArgumentException");
- } catch (IllegalArgumentException e) {
- /* this is what we expect */
- }
- }
-
- /**
- * Test execute with simple int property and Float value.
- */
- public void testExecuteWithSimpleIntPropertyAndFloatValue() {
- try {
- new BeanPropertyValueChangeClosure("intProperty", expectedFloatValue).execute(new TestBean());
- fail("Should have thrown an IllegalArgumentException");
- } catch (IllegalArgumentException e) {
- /* this is what we expect */
- }
- }
-
- /**
- * Test execute with simple int property and Integer value.
- */
- public void testExecuteWithSimpleIntPropertyAndIntegerValue() {
- TestBean testBean = new TestBean();
- new BeanPropertyValueChangeClosure("intProperty", expectedIntegerValue).execute(testBean);
- assertTrue(expectedIntegerValue.intValue() == testBean.getIntProperty());
- }
-
- /**
- * Test execute with simple boolean property and Boolean value.
- */
- public void testExecuteWithSimpleBooleanPropertyAndBooleanValue() {
- TestBean testBean = new TestBean();
- new BeanPropertyValueChangeClosure("booleanProperty", expectedBooleanValue).execute(testBean);
- assertTrue(expectedBooleanValue.booleanValue() == testBean.getBooleanProperty());
- }
-
- /**
- * Test execute with simple boolean property and String value.
- */
- public void testExecuteWithSimpleBooleanPropertyAndStringValue() {
- try {
- new BeanPropertyValueChangeClosure("booleanProperty", "true").execute(new TestBean());
- fail("Should have thrown an IllegalArgumentException");
- } catch (IllegalArgumentException e) {
- /* this is what we expect */
- }
- }
-
- /**
- * Test execute with simple byte property and Byte value.
- */
- public void testExecuteWithSimpleBytePropertyAndByteValue() {
- TestBean testBean = new TestBean();
- new BeanPropertyValueChangeClosure("byteProperty", expectedByteValue).execute(testBean);
- assertTrue(expectedByteValue.byteValue() == testBean.getByteProperty());
- }
-
- /**
- * Test execute with simple boolean property and String value.
- */
- public void testExecuteWithSimpleBytePropertyAndStringValue() {
- try {
- new BeanPropertyValueChangeClosure("byteProperty", "foo").execute(new TestBean());
- fail("Should have thrown an IllegalArgumentException");
- } catch (IllegalArgumentException e) {
- /* this is what we expect */
- }
- }
-
- /**
- * Test execute with simple primitive property and null value.
- */
- public void testExecuteWithSimplePrimitivePropertyAndNullValue() {
- try {
- new BeanPropertyValueChangeClosure("intProperty", null).execute(new TestBean());
- fail("Should have thrown an IllegalArgumentException");
- } catch (NullPointerException e) {
- /* this is what we expect */
- }
- }
-
- /**
- * Test execute with read only property.
- */
- public void testExecuteWithReadOnlyProperty() {
- try {
- new BeanPropertyValueChangeClosure("readOnlyProperty", "foo").execute(new TestBean());
- fail("Should have thrown an IllegalArgumentException");
- } catch (IllegalArgumentException e) {
- /* this is what we expect */
- }
- }
-
- /**
- * Test execute with write only property.
- */
- public void testExecuteWithWriteOnlyProperty() {
- TestBean testBean = new TestBean();
- new BeanPropertyValueChangeClosure("writeOnlyProperty", "foo").execute(testBean);
- assertEquals("foo", testBean.getWriteOnlyPropertyValue());
- }
-
- /**
- * Test execute with a nested property.
- */
- public void testExecuteWithNestedProperty() {
- TestBean testBean = new TestBean();
- new BeanPropertyValueChangeClosure("nested.stringProperty", "bar").execute(testBean);
- assertEquals("bar", testBean.getNested().getStringProperty());
- }
-
- /**
- * Test execute with a nested property and null in the property path.
- */
- public void testExecuteWithNullInPropertyPath() {
- try {
- new BeanPropertyValueChangeClosure("anotherNested.stringProperty", "foo").execute(new TestBean());
- fail("Should have thrown an IllegalArgumentException");
- } catch (IllegalArgumentException e) {
- /* this is what we expect */
- }
- }
-
- /**
- * Test execute with a nested property and null in the property path and ignoreNull = true.
- */
- public void testExecuteWithNullInPropertyPathAngIgnoreTrue() {
- TestBean testBean = new TestBean();
-
- // create a closure that will attempt to set a property on the null bean in the path
- BeanPropertyValueChangeClosure closure = new BeanPropertyValueChangeClosure("anotherNested.stringProperty",
- "Should ignore exception", true);
-
- try {
- closure.execute(testBean);
- } catch (IllegalArgumentException e) {
- fail("Should have ignored the exception.");
- }
- }
-
- /**
- * Test execute with indexed property.
- */
- public void testExecuteWithIndexedProperty() {
- TestBean testBean = new TestBean();
- new BeanPropertyValueChangeClosure("intIndexed[0]", expectedIntegerValue).execute(testBean);
- assertTrue(expectedIntegerValue.intValue() == testBean.getIntIndexed(0));
- }
-
- /**
- * Test execute with mapped property.
- */
- public void testExecuteWithMappedProperty() {
- TestBean testBean = new TestBean();
- new BeanPropertyValueChangeClosure("mappedProperty(fred)", "barney").execute(testBean);
- assertEquals("barney", testBean.getMappedProperty("fred"));
- }
-
- /**
- * Test execute with a simple String property.
- */
- public void testExecuteWithSimpleStringProperty() {
- TestBean testBean = new TestBean();
- new BeanPropertyValueChangeClosure("stringProperty", "barney").execute(testBean);
- assertEquals("barney", testBean.getStringProperty());
- }
-
- /**
- * Test execute with an invalid property name.
- */
- public void testExecuteWithInvalidPropertyName() {
- try {
- new BeanPropertyValueChangeClosure("bogusProperty", "foo").execute(new TestBean());
- fail("Should have thrown an IllegalArgumentException");
- } catch (IllegalArgumentException e) {
- /* this is what we expect */
- }
- }
-}
+ */
+
+package org.apache.commons.beanutils;
+
+import junit.framework.TestCase;
+
+
+/**
+ * Test cases for <code>BeanPropertyValueChangeClosure</code>.
+ *
+ * @author Norm Deane
+ */
+public class BeanPropertyValueChangeClosureTest extends TestCase {
+
+ private static final Integer expectedIntegerValue = new Integer(123);
+ private static final Float expectedFloatValue = new Float(123.123f);
+ private static final Double expectedDoubleValue = new Double(567879.12344d);
+ private static final Boolean expectedBooleanValue = Boolean.TRUE;
+ private static final Byte expectedByteValue = new Byte("12");
+
+ /**
+ * Constructor for BeanPropertyValueChangeClosureTest.
+ *
+ * @param name Name of this test case.
+ */
+ public BeanPropertyValueChangeClosureTest(String name) {
+ super(name);
+ }
+
+ /**
+ * Test execute with simple float property and Float value.
+ */
+ public void testExecuteWithSimpleFloatPropertyAndFloatValue() {
+ TestBean testBean = new TestBean();
+ new BeanPropertyValueChangeClosure("floatProperty", expectedFloatValue).execute(testBean);
+ assertTrue(expectedFloatValue.floatValue() == testBean.getFloatProperty());
+ }
+
+ /**
+ * Test execute with simple float property and String value.
+ */
+ public void testExecuteWithSimpleFloatPropertyAndStringValue() {
+ try {
+ new BeanPropertyValueChangeClosure("floatProperty", "123").execute(new TestBean());
+ fail("Should have thrown an IllegalArgumentException");
+ } catch (IllegalArgumentException e) {
+ /* this is what we expect */
+ }
+ }
+
+ /**
+ * Test execute with simple float property and Double value.
+ */
+ public void testExecuteWithSimpleFloatPropertyAndDoubleValue() {
+ try {
+ new BeanPropertyValueChangeClosure("floatProperty", expectedDoubleValue).execute(new TestBean());
+ fail("Should have thrown an IllegalArgumentException");
+ } catch (IllegalArgumentException e) {
+ /* this is what we expect */
+ }
+ }
+
+ /**
+ * Test execute with simple float property and Integer value.
+ */
+ public void testExecuteWithSimpleFloatPropertyAndIntegerValue() {
+ TestBean testBean = new TestBean();
+ new BeanPropertyValueChangeClosure("floatProperty", expectedIntegerValue).execute(testBean);
+ assertTrue(expectedIntegerValue.floatValue() == testBean.getFloatProperty());
+ }
+
+ /**
+ * Test execute with simple double property and Double value.
+ */
+ public void testExecuteWithSimpleDoublePropertyAndDoubleValue() {
+ TestBean testBean = new TestBean();
+ new BeanPropertyValueChangeClosure("doubleProperty", expectedDoubleValue).execute(testBean);
+ assertTrue(expectedDoubleValue.doubleValue() == testBean.getDoubleProperty());
+ }
+
+ /**
+ * Test execute with simple double property and String value.
+ */
+ public void testExecuteWithSimpleDoublePropertyAndStringValue() {
+ try {
+ new BeanPropertyValueChangeClosure("doubleProperty", "123").execute(new TestBean());
+ fail("Should have thrown an IllegalArgumentException");
+ } catch (IllegalArgumentException e) {
+ /* this is what we expect */
+ }
+ }
+
+ /**
+ * Test execute with simple double property and Float value.
+ */
+ public void testExecuteWithSimpleDoublePropertyAndFloatValue() {
+ TestBean testBean = new TestBean();
+ new BeanPropertyValueChangeClosure("doubleProperty", expectedFloatValue).execute(testBean);
+ assertTrue(expectedFloatValue.doubleValue() == testBean.getDoubleProperty());
+ }
+
+ /**
+ * Test execute with simple double property and Integer value.
+ */
+ public void testExecuteWithSimpleDoublePropertyAndIntegerValue() {
+ TestBean testBean = new TestBean();
+ new BeanPropertyValueChangeClosure("doubleProperty", expectedIntegerValue).execute(testBean);
+ assertTrue(expectedIntegerValue.doubleValue() == testBean.getDoubleProperty());
+ }
+
+ /**
+ * Test execute with simple int property and Double value.
+ */
+ public void testExecuteWithSimpleIntPropertyAndDoubleValue() {
+ try {
+ new BeanPropertyValueChangeClosure("intProperty", expectedDoubleValue).execute(new TestBean());
+ fail("Should have thrown an IllegalArgumentException");
+ } catch (IllegalArgumentException e) {
+ /* this is what we expect */
+ }
+ }
+
+ /**
+ * Test execute with simple int property and String value.
+ */
+ public void testExecuteWithSimpleIntPropertyAndStringValue() {
+ try {
+ new BeanPropertyValueChangeClosure("intProperty", "123").execute(new TestBean());
+ fail("Should have thrown an IllegalArgumentException");
+ } catch (IllegalArgumentException e) {
+ /* this is what we expect */
+ }
+ }
+
+ /**
+ * Test execute with simple int property and Float value.
+ */
+ public void testExecuteWithSimpleIntPropertyAndFloatValue() {
+ try {
+ new BeanPropertyValueChangeClosure("intProperty", expectedFloatValue).execute(new TestBean());
+ fail("Should have thrown an IllegalArgumentException");
+ } catch (IllegalArgumentException e) {
+ /* this is what we expect */
+ }
+ }
+
+ /**
+ * Test execute with simple int property and Integer value.
+ */
+ public void testExecuteWithSimpleIntPropertyAndIntegerValue() {
+ TestBean testBean = new TestBean();
+ new BeanPropertyValueChangeClosure("intProperty", expectedIntegerValue).execute(testBean);
+ assertTrue(expectedIntegerValue.intValue() == testBean.getIntProperty());
+ }
+
+ /**
+ * Test execute with simple boolean property and Boolean value.
+ */
+ public void testExecuteWithSimpleBooleanPropertyAndBooleanValue() {
+ TestBean testBean = new TestBean();
+ new BeanPropertyValueChangeClosure("booleanProperty", expectedBooleanValue).execute(testBean);
+ assertTrue(expectedBooleanValue.booleanValue() == testBean.getBooleanProperty());
+ }
+
+ /**
+ * Test execute with simple boolean property and String value.
+ */
+ public void testExecuteWithSimpleBooleanPropertyAndStringValue() {
+ try {
+ new BeanPropertyValueChangeClosure("booleanProperty", "true").execute(new TestBean());
+ fail("Should have thrown an IllegalArgumentException");
+ } catch (IllegalArgumentException e) {
+ /* this is what we expect */
+ }
+ }
+
+ /**
+ * Test execute with simple byte property and Byte value.
+ */
+ public void testExecuteWithSimpleBytePropertyAndByteValue() {
+ TestBean testBean = new TestBean();
+ new BeanPropertyValueChangeClosure("byteProperty", expectedByteValue).execute(testBean);
+ assertTrue(expectedByteValue.byteValue() == testBean.getByteProperty());
+ }
+
+ /**
+ * Test execute with simple boolean property and String value.
+ */
+ public void testExecuteWithSimpleBytePropertyAndStringValue() {
+ try {
+ new BeanPropertyValueChangeClosure("byteProperty", "foo").execute(new TestBean());
+ fail("Should have thrown an IllegalArgumentException");
+ } catch (IllegalArgumentException e) {
+ /* this is what we expect */
+ }
+ }
+
+ /**
+ * Test execute with simple primitive property and null value.
+ */
+ public void testExecuteWithSimplePrimitivePropertyAndNullValue() {
+ try {
+ new BeanPropertyValueChangeClosure("intProperty", null).execute(new TestBean());
+ fail("Should have thrown an IllegalArgumentException");
+ } catch (NullPointerException e) {
+ /* this is what we expect */
+ }
+ }
+
+ /**
+ * Test execute with read only property.
+ */
+ public void testExecuteWithReadOnlyProperty() {
+ try {
+ new BeanPropertyValueChangeClosure("readOnlyProperty", "foo").execute(new TestBean());
+ fail("Should have thrown an IllegalArgumentException");
+ } catch (IllegalArgumentException e) {
+ /* this is what we expect */
+ }
+ }
+
+ /**
+ * Test execute with write only property.
+ */
+ public void testExecuteWithWriteOnlyProperty() {
+ TestBean testBean = new TestBean();
+ new BeanPropertyValueChangeClosure("writeOnlyProperty", "foo").execute(testBean);
+ assertEquals("foo", testBean.getWriteOnlyPropertyValue());
+ }
+
+ /**
+ * Test execute with a nested property.
+ */
+ public void testExecuteWithNestedProperty() {
+ TestBean testBean = new TestBean();
+ new BeanPropertyValueChangeClosure("nested.stringProperty", "bar").execute(testBean);
+ assertEquals("bar", testBean.getNested().getStringProperty());
+ }
+
+ /**
+ * Test execute with a nested property and null in the property path.
+ */
+ public void testExecuteWithNullInPropertyPath() {
+ try {
+ new BeanPropertyValueChangeClosure("anotherNested.stringProperty", "foo").execute(new TestBean());
+ fail("Should have thrown an IllegalArgumentException");
+ } catch (IllegalArgumentException e) {
+ /* this is what we expect */
+ }
+ }
+
+ /**
+ * Test execute with a nested property and null in the property path and ignoreNull = true.
+ */
+ public void testExecuteWithNullInPropertyPathAngIgnoreTrue() {
+ TestBean testBean = new TestBean();
+
+ // create a closure that will attempt to set a property on the null bean in the path
+ BeanPropertyValueChangeClosure closure = new BeanPropertyValueChangeClosure("anotherNested.stringProperty",
+ "Should ignore exception", true);
+
+ try {
+ closure.execute(testBean);
+ } catch (IllegalArgumentException e) {
+ fail("Should have ignored the exception.");
+ }
+ }
+
+ /**
+ * Test execute with indexed property.
+ */
+ public void testExecuteWithIndexedProperty() {
+ TestBean testBean = new TestBean();
+ new BeanPropertyValueChangeClosure("intIndexed[0]", expectedIntegerValue).execute(testBean);
+ assertTrue(expectedIntegerValue.intValue() == testBean.getIntIndexed(0));
+ }
+
+ /**
+ * Test execute with mapped property.
+ */
+ public void testExecuteWithMappedProperty() {
+ TestBean testBean = new TestBean();
+ new BeanPropertyValueChangeClosure("mappedProperty(fred)", "barney").execute(testBean);
+ assertEquals("barney", testBean.getMappedProperty("fred"));
+ }
+
+ /**
+ * Test execute with a simple String property.
+ */
+ public void testExecuteWithSimpleStringProperty() {
+ TestBean testBean = new TestBean();
+ new BeanPropertyValueChangeClosure("stringProperty", "barney").execute(testBean);
+ assertEquals("barney", testBean.getStringProperty());
+ }
+
+ /**
+ * Test execute with an invalid property name.
+ */
+ public void testExecuteWithInvalidPropertyName() {
+ try {
+ new BeanPropertyValueChangeClosure("bogusProperty", "foo").execute(new TestBean());
+ fail("Should have thrown an IllegalArgumentException");
+ } catch (IllegalArgumentException e) {
+ /* this is what we expect */
+ }
+ }
+}
Propchange: jakarta/commons/proper/beanutils/trunk/optional/bean-collections/src/test/org/apache/commons/beanutils/BeanPropertyValueChangeClosureTest.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Feb 26 04:51:00 2005
@@ -1 +1 @@
-author date id revision
+Date Author Id Revision HeadURL
Propchange: jakarta/commons/proper/beanutils/trunk/optional/bean-collections/src/test/org/apache/commons/beanutils/BeanPropertyValueEqualsPredicateTest.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Feb 26 04:51:00 2005
@@ -1 +1 @@
-author date id revision
+Date Author Id Revision HeadURL
Modified: jakarta/commons/proper/beanutils/trunk/optional/bean-collections/src/test/org/apache/commons/beanutils/BeanToPropertyValueTransformerTest.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/beanutils/trunk/optional/bean-collections/src/test/org/apache/commons/beanutils/BeanToPropertyValueTransformerTest.java?view=diff&r1=155400&r2=155401
==============================================================================
--- jakarta/commons/proper/beanutils/trunk/optional/bean-collections/src/test/org/apache/commons/beanutils/BeanToPropertyValueTransformerTest.java (original)
+++ jakarta/commons/proper/beanutils/trunk/optional/bean-collections/src/test/org/apache/commons/beanutils/BeanToPropertyValueTransformerTest.java Sat Feb 26 04:51:00 2005
@@ -12,235 +12,235 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
- */
-
-package org.apache.commons.beanutils;
-
-import junit.framework.TestCase;
-
-
-/**
- * Test cases for <code>BeanToPropertyValueTransformer</code>.
- *
- * @author Norm Deane
- */
-public class BeanToPropertyValueTransformerTest extends TestCase {
-
- private static final Integer expectedIntegerValue = new Integer(123);
- private static final Long expectedLongValue = new Long(123);
- private static final Float expectedFloatValue = new Float(123.123f);
- private static final Double expectedDoubleValue = new Double(567879.12344d);
- private static final Boolean expectedBooleanValue = Boolean.TRUE;
- private static final Byte expectedByteValue = new Byte("12");
-
- /**
- * Constructor for BeanToPropertyValueTransformerTest.
- *
- * @param name Name of this test case.
- */
- public BeanToPropertyValueTransformerTest(String name) {
- super(name);
- }
-
- /**
- * Test transform with simple String property.
- */
- public void testTransformWithSimpleStringProperty() {
- BeanToPropertyValueTransformer transformer =
- new BeanToPropertyValueTransformer("stringProperty");
- TestBean testBean = new TestBean("foo");
- assertEquals("foo", transformer.transform(testBean));
- }
-
- /**
- * Test transform with simple String property and null value.
- *
- */
- public void testTransformWithSimpleStringPropertyAndNullValue() {
- BeanToPropertyValueTransformer transformer =
- new BeanToPropertyValueTransformer("stringProperty");
- TestBean testBean = new TestBean((String) null);
- assertNull(transformer.transform(testBean));
- }
-
- /**
- * Test transform with simple int property.
- */
- public void testTransformWithSimpleIntProperty() {
- BeanToPropertyValueTransformer transformer =
- new BeanToPropertyValueTransformer("intProperty");
- TestBean testBean = new TestBean(expectedIntegerValue.intValue());
- assertEquals(expectedIntegerValue, transformer.transform(testBean));
- }
-
- /**
- * Test transform with simple long property.
- */
- public void testTransformWithSimpleLongProperty() {
- BeanToPropertyValueTransformer transformer =
- new BeanToPropertyValueTransformer("longProperty");
- TestBean testBean = new TestBean();
- testBean.setLongProperty(expectedLongValue.longValue());
- assertEquals(expectedLongValue, transformer.transform(testBean));
- }
-
- /**
- * Test transform with simple float property.
- */
- public void testTransformWithSimpleFloatProperty() {
- BeanToPropertyValueTransformer transformer =
- new BeanToPropertyValueTransformer("floatProperty");
- TestBean testBean = new TestBean(expectedFloatValue.floatValue());
- assertEquals(expectedFloatValue, transformer.transform(testBean));
- }
-
- /**
- * Test transform with simple double property.
- */
- public void testTransformWithSimpleDoubleProperty() {
- BeanToPropertyValueTransformer transformer =
- new BeanToPropertyValueTransformer("doubleProperty");
- TestBean testBean = new TestBean(expectedDoubleValue.doubleValue());
- assertEquals(expectedDoubleValue, transformer.transform(testBean));
- }
-
- /**
- * Test transform with simple byte property.
- */
- public void testTransformWithSimpleByteProperty() {
- BeanToPropertyValueTransformer transformer =
- new BeanToPropertyValueTransformer("byteProperty");
- TestBean testBean = new TestBean();
- testBean.setByteProperty(expectedByteValue.byteValue());
- assertEquals(expectedByteValue, transformer.transform(testBean));
- }
-
- /**
- * Test transform with simple boolean property.
- */
- public void testTransformWithSimpleBooleanProperty() {
- BeanToPropertyValueTransformer transformer =
- new BeanToPropertyValueTransformer("booleanProperty");
- TestBean testBean = new TestBean(expectedBooleanValue.booleanValue());
- assertEquals(expectedBooleanValue, transformer.transform(testBean));
- }
-
- /**
- * Test transform with write only property.
- */
- public void testTransformWithWriteOnlyProperty() {
- try {
- new BeanToPropertyValueTransformer("writeOnlyProperty").transform(new TestBean());
- } catch (IllegalArgumentException e) {
- /* This is what should happen */
- }
- }
-
- /**
- * Test transform with read only property.
- */
- public void testTransformWithReadOnlyProperty() {
- BeanToPropertyValueTransformer transformer =
- new BeanToPropertyValueTransformer("readOnlyProperty");
- TestBean testBean = new TestBean();
- assertEquals(testBean.getReadOnlyProperty(), transformer.transform(testBean));
- }
-
- /**
- * Test transform with invalid property.
- */
- public void testTransformWithInvalidProperty() {
- try {
- new BeanToPropertyValueTransformer("bogusProperty").transform(new TestBean());
- } catch (IllegalArgumentException e) {
- /* This is what should happen */
- }
- }
-
- /**
- * Test transform with nested property.
- */
- public void testTransformWithNestedProperty() {
- BeanToPropertyValueTransformer transformer =
- new BeanToPropertyValueTransformer("anotherNested.stringProperty");
- TestBean testBean = new TestBean();
- TestBean nestedBean = new TestBean("foo");
- testBean.setAnotherNested(nestedBean);
- assertEquals("foo", transformer.transform(testBean));
- }
-
- /**
- * Test transform with mapped property.
- */
- public void testTransformWithMappedProperty() {
- BeanToPropertyValueTransformer transformer =
- new BeanToPropertyValueTransformer("mappedProperty(test-key)");
- TestBean testBean = new TestBean();
-
- // try a valid key
- testBean.setMappedProperty("test-key", "test-value");
- assertEquals("test-value", transformer.transform(testBean));
-
- // now try an invalid key
- transformer = new BeanToPropertyValueTransformer("mappedProperty(bogus-key)");
- assertEquals(null, transformer.transform(testBean));
- }
-
- /**
- * Test transform with indexed property.
- */
- public void testTransformWithIndexedProperty() {
- BeanToPropertyValueTransformer transformer =
- new BeanToPropertyValueTransformer("intIndexed[0]");
- TestBean testBean = new TestBean();
- testBean.setIntIndexed(0, expectedIntegerValue.intValue());
- assertEquals(expectedIntegerValue, transformer.transform(testBean));
-
- // test index out of range
- transformer = new BeanToPropertyValueTransformer("intIndexed[9999]");
-
- try {
- transformer.transform(testBean);
- fail("Should have thrown an ArrayIndexOutOfBoundsException");
- } catch (ArrayIndexOutOfBoundsException e) {
- /* this is what should happen */
- }
- }
-
- /**
- * Test transform with nested indexed property.
- */
- public void testTransformWithNestedIndexedProperty() {
- BeanToPropertyValueTransformer transformer =
- new BeanToPropertyValueTransformer("anotherNested.intIndexed[0]");
- TestBean testBean = new TestBean();
- TestBean nestedBean = new TestBean();
- nestedBean.setIntIndexed(0, expectedIntegerValue.intValue());
- testBean.setAnotherNested(nestedBean);
- assertEquals(expectedIntegerValue, transformer.transform(testBean));
- }
-
- /**
- * Test transform with null in property path.
- */
- public void testTransformWithNullInPath() {
- BeanToPropertyValueTransformer transformer =
- new BeanToPropertyValueTransformer("anotherNested.stringProperty");
-
- try {
- transformer.transform(new TestBean());
- fail("Should have throw IllegalArgumentException");
- } catch (IllegalArgumentException e) {
- /* ignore this is what should happen */
- }
- }
-
- /**
- * Test transform with null in property path and ignore = true.
- */
- public void testTransformWithNullInPathAndIgnoreTrue() {
- BeanToPropertyValueTransformer transformer =
- new BeanToPropertyValueTransformer("anotherNested.stringProperty",true);
- assertEquals(null, transformer.transform(new TestBean()));
- }
-}
+ */
+
+package org.apache.commons.beanutils;
+
+import junit.framework.TestCase;
+
+
+/**
+ * Test cases for <code>BeanToPropertyValueTransformer</code>.
+ *
+ * @author Norm Deane
+ */
+public class BeanToPropertyValueTransformerTest extends TestCase {
+
+ private static final Integer expectedIntegerValue = new Integer(123);
+ private static final Long expectedLongValue = new Long(123);
+ private static final Float expectedFloatValue = new Float(123.123f);
+ private static final Double expectedDoubleValue = new Double(567879.12344d);
+ private static final Boolean expectedBooleanValue = Boolean.TRUE;
+ private static final Byte expectedByteValue = new Byte("12");
+
+ /**
+ * Constructor for BeanToPropertyValueTransformerTest.
+ *
+ * @param name Name of this test case.
+ */
+ public BeanToPropertyValueTransformerTest(String name) {
+ super(name);
+ }
+
+ /**
+ * Test transform with simple String property.
+ */
+ public void testTransformWithSimpleStringProperty() {
+ BeanToPropertyValueTransformer transformer =
+ new BeanToPropertyValueTransformer("stringProperty");
+ TestBean testBean = new TestBean("foo");
+ assertEquals("foo", transformer.transform(testBean));
+ }
+
+ /**
+ * Test transform with simple String property and null value.
+ *
+ */
+ public void testTransformWithSimpleStringPropertyAndNullValue() {
+ BeanToPropertyValueTransformer transformer =
+ new BeanToPropertyValueTransformer("stringProperty");
+ TestBean testBean = new TestBean((String) null);
+ assertNull(transformer.transform(testBean));
+ }
+
+ /**
+ * Test transform with simple int property.
+ */
+ public void testTransformWithSimpleIntProperty() {
+ BeanToPropertyValueTransformer transformer =
+ new BeanToPropertyValueTransformer("intProperty");
+ TestBean testBean = new TestBean(expectedIntegerValue.intValue());
+ assertEquals(expectedIntegerValue, transformer.transform(testBean));
+ }
+
+ /**
+ * Test transform with simple long property.
+ */
+ public void testTransformWithSimpleLongProperty() {
+ BeanToPropertyValueTransformer transformer =
+ new BeanToPropertyValueTransformer("longProperty");
+ TestBean testBean = new TestBean();
+ testBean.setLongProperty(expectedLongValue.longValue());
+ assertEquals(expectedLongValue, transformer.transform(testBean));
+ }
+
+ /**
+ * Test transform with simple float property.
+ */
+ public void testTransformWithSimpleFloatProperty() {
+ BeanToPropertyValueTransformer transformer =
+ new BeanToPropertyValueTransformer("floatProperty");
+ TestBean testBean = new TestBean(expectedFloatValue.floatValue());
+ assertEquals(expectedFloatValue, transformer.transform(testBean));
+ }
+
+ /**
+ * Test transform with simple double property.
+ */
+ public void testTransformWithSimpleDoubleProperty() {
+ BeanToPropertyValueTransformer transformer =
+ new BeanToPropertyValueTransformer("doubleProperty");
+ TestBean testBean = new TestBean(expectedDoubleValue.doubleValue());
+ assertEquals(expectedDoubleValue, transformer.transform(testBean));
+ }
+
+ /**
+ * Test transform with simple byte property.
+ */
+ public void testTransformWithSimpleByteProperty() {
+ BeanToPropertyValueTransformer transformer =
+ new BeanToPropertyValueTransformer("byteProperty");
+ TestBean testBean = new TestBean();
+ testBean.setByteProperty(expectedByteValue.byteValue());
+ assertEquals(expectedByteValue, transformer.transform(testBean));
+ }
+
+ /**
+ * Test transform with simple boolean property.
+ */
+ public void testTransformWithSimpleBooleanProperty() {
+ BeanToPropertyValueTransformer transformer =
+ new BeanToPropertyValueTransformer("booleanProperty");
+ TestBean testBean = new TestBean(expectedBooleanValue.booleanValue());
+ assertEquals(expectedBooleanValue, transformer.transform(testBean));
+ }
+
+ /**
+ * Test transform with write only property.
+ */
+ public void testTransformWithWriteOnlyProperty() {
+ try {
+ new BeanToPropertyValueTransformer("writeOnlyProperty").transform(new TestBean());
+ } catch (IllegalArgumentException e) {
+ /* This is what should happen */
+ }
+ }
+
+ /**
+ * Test transform with read only property.
+ */
+ public void testTransformWithReadOnlyProperty() {
+ BeanToPropertyValueTransformer transformer =
+ new BeanToPropertyValueTransformer("readOnlyProperty");
+ TestBean testBean = new TestBean();
+ assertEquals(testBean.getReadOnlyProperty(), transformer.transform(testBean));
+ }
+
+ /**
+ * Test transform with invalid property.
+ */
+ public void testTransformWithInvalidProperty() {
+ try {
+ new BeanToPropertyValueTransformer("bogusProperty").transform(new TestBean());
+ } catch (IllegalArgumentException e) {
+ /* This is what should happen */
+ }
+ }
+
+ /**
+ * Test transform with nested property.
+ */
+ public void testTransformWithNestedProperty() {
+ BeanToPropertyValueTransformer transformer =
+ new BeanToPropertyValueTransformer("anotherNested.stringProperty");
+ TestBean testBean = new TestBean();
+ TestBean nestedBean = new TestBean("foo");
+ testBean.setAnotherNested(nestedBean);
+ assertEquals("foo", transformer.transform(testBean));
+ }
+
+ /**
+ * Test transform with mapped property.
+ */
+ public void testTransformWithMappedProperty() {
+ BeanToPropertyValueTransformer transformer =
+ new BeanToPropertyValueTransformer("mappedProperty(test-key)");
+ TestBean testBean = new TestBean();
+
+ // try a valid key
+ testBean.setMappedProperty("test-key", "test-value");
+ assertEquals("test-value", transformer.transform(testBean));
+
+ // now try an invalid key
+ transformer = new BeanToPropertyValueTransformer("mappedProperty(bogus-key)");
+ assertEquals(null, transformer.transform(testBean));
+ }
+
+ /**
+ * Test transform with indexed property.
+ */
+ public void testTransformWithIndexedProperty() {
+ BeanToPropertyValueTransformer transformer =
+ new BeanToPropertyValueTransformer("intIndexed[0]");
+ TestBean testBean = new TestBean();
+ testBean.setIntIndexed(0, expectedIntegerValue.intValue());
+ assertEquals(expectedIntegerValue, transformer.transform(testBean));
+
+ // test index out of range
+ transformer = new BeanToPropertyValueTransformer("intIndexed[9999]");
+
+ try {
+ transformer.transform(testBean);
+ fail("Should have thrown an ArrayIndexOutOfBoundsException");
+ } catch (ArrayIndexOutOfBoundsException e) {
+ /* this is what should happen */
+ }
+ }
+
+ /**
+ * Test transform with nested indexed property.
+ */
+ public void testTransformWithNestedIndexedProperty() {
+ BeanToPropertyValueTransformer transformer =
+ new BeanToPropertyValueTransformer("anotherNested.intIndexed[0]");
+ TestBean testBean = new TestBean();
+ TestBean nestedBean = new TestBean();
+ nestedBean.setIntIndexed(0, expectedIntegerValue.intValue());
+ testBean.setAnotherNested(nestedBean);
+ assertEquals(expectedIntegerValue, transformer.transform(testBean));
+ }
+
+ /**
+ * Test transform with null in property path.
+ */
+ public void testTransformWithNullInPath() {
+ BeanToPropertyValueTransformer transformer =
+ new BeanToPropertyValueTransformer("anotherNested.stringProperty");
+
+ try {
+ transformer.transform(new TestBean());
+ fail("Should have throw IllegalArgumentException");
+ } catch (IllegalArgumentException e) {
+ /* ignore this is what should happen */
+ }
+ }
+
+ /**
+ * Test transform with null in property path and ignore = true.
+ */
+ public void testTransformWithNullInPathAndIgnoreTrue() {
+ BeanToPropertyValueTransformer transformer =
+ new BeanToPropertyValueTransformer("anotherNested.stringProperty",true);
+ assertEquals(null, transformer.transform(new TestBean()));
+ }
+}
Propchange: jakarta/commons/proper/beanutils/trunk/optional/bean-collections/src/test/org/apache/commons/beanutils/BeanToPropertyValueTransformerTest.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Feb 26 04:51:00 2005
@@ -1 +1 @@
-author date id revision
+Date Author Id Revision HeadURL
Propchange: jakarta/commons/proper/beanutils/trunk/optional/bean-collections/src/test/org/apache/commons/beanutils/Child.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Feb 26 04:51:00 2005
@@ -1 +1 @@
-author date id revision
+Date Author Id Revision HeadURL
Modified: jakarta/commons/proper/beanutils/trunk/optional/bean-collections/src/test/org/apache/commons/beanutils/TestBean.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/beanutils/trunk/optional/bean-collections/src/test/org/apache/commons/beanutils/TestBean.java?view=diff&r1=155400&r2=155401
==============================================================================
--- jakarta/commons/proper/beanutils/trunk/optional/bean-collections/src/test/org/apache/commons/beanutils/TestBean.java (original)
+++ jakarta/commons/proper/beanutils/trunk/optional/bean-collections/src/test/org/apache/commons/beanutils/TestBean.java Sat Feb 26 04:51:00 2005
@@ -29,7 +29,7 @@
*
* @author Craig R. McClanahan
* @author Rodney Waldhoff
- * @version $Revision: 1.1 $ $Date: 2004/05/10 20:01:16 $
+ * @version $Revision$ $Date$
*/
public class TestBean {
Propchange: jakarta/commons/proper/beanutils/trunk/optional/bean-collections/src/test/org/apache/commons/beanutils/TestBean.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Feb 26 04:51:00 2005
@@ -1 +1 @@
-author date id revision
+Date Author Id Revision HeadURL
Modified: jakarta/commons/proper/beanutils/trunk/optional/bean-collections/src/test/org/apache/commons/beanutils/TestBeanMap.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/beanutils/trunk/optional/bean-collections/src/test/org/apache/commons/beanutils/TestBeanMap.java?view=diff&r1=155400&r2=155401
==============================================================================
--- jakarta/commons/proper/beanutils/trunk/optional/bean-collections/src/test/org/apache/commons/beanutils/TestBeanMap.java (original)
+++ jakarta/commons/proper/beanutils/trunk/optional/bean-collections/src/test/org/apache/commons/beanutils/TestBeanMap.java Sat Feb 26 04:51:00 2005
@@ -28,7 +28,7 @@
/**
* Test cases for BeanMap
*
- * @version $Revision: 1.1 $ $Date: 2004/05/11 22:46:26 $
+ * @version $Revision$ $Date$
*
* @author Morgan Delagrange
* @author Stephen Colebourne
Propchange: jakarta/commons/proper/beanutils/trunk/optional/bean-collections/src/test/org/apache/commons/beanutils/TestBeanMap.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Feb 26 04:51:00 2005
@@ -1 +1 @@
-author date id revision
+Date Author Id Revision HeadURL
Propchange: jakarta/commons/proper/beanutils/trunk/optional/bean-collections/xdocs/index.xml
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Feb 26 04:51:00 2005
@@ -1 +1 @@
-author date id revision
+Date Author Id Revision HeadURL
Propchange: jakarta/commons/proper/beanutils/trunk/optional/bean-collections/xdocs/navigation.xml
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Feb 26 04:51:00 2005
@@ -1 +1 @@
-author date id revision
+Date Author Id Revision HeadURL
Propchange: jakarta/commons/proper/beanutils/trunk/project.properties
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: jakarta/commons/proper/beanutils/trunk/project.xml
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Feb 26 04:51:00 2005
@@ -1 +1 @@
-author date id revision
+Date Author Id Revision HeadURL
Propchange: jakarta/commons/proper/beanutils/trunk/src/conf/MANIFEST.MF
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Feb 26 04:51:00 2005
@@ -1 +1 @@
-author date id revision
+Date Author Id Revision HeadURL
Modified: jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/BasicDynaBean.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/BasicDynaBean.java?view=diff&r1=155400&r2=155401
==============================================================================
--- jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/BasicDynaBean.java (original)
+++ jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/BasicDynaBean.java Sat Feb 26 04:51:00 2005
@@ -37,7 +37,7 @@
* property values are <code>Serializable</code>.</p>
*
* @author Craig McClanahan
- * @version $Revision: 1.11 $ $Date: 2004/02/28 13:18:33 $
+ * @version $Revision$ $Date$
*/
public class BasicDynaBean implements DynaBean, Serializable {
Propchange: jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/BasicDynaBean.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Feb 26 04:51:00 2005
@@ -1 +1 @@
-author date id revision
+Date Author Id Revision HeadURL
Modified: jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/BasicDynaClass.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/BasicDynaClass.java?view=diff&r1=155400&r2=155401
==============================================================================
--- jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/BasicDynaClass.java (original)
+++ jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/BasicDynaClass.java Sat Feb 26 04:51:00 2005
@@ -33,7 +33,7 @@
* used to associate the DynaBean instance with this DynaClass.</p>
*
* @author Craig McClanahan
- * @version $Revision: 1.11 $ $Date: 2004/02/28 13:18:33 $
+ * @version $Revision$ $Date$
*/
public class BasicDynaClass implements DynaClass, Serializable {
Propchange: jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/BasicDynaClass.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Feb 26 04:51:00 2005
@@ -1 +1 @@
-author date id revision
+Date Author Id Revision HeadURL
Propchange: jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/BeanAccessLanguageException.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Feb 26 04:51:00 2005
@@ -1 +1 @@
-author date id revision
+Date Author Id Revision HeadURL
Modified: jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/BeanUtils.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/BeanUtils.java?view=diff&r1=155400&r2=155401
==============================================================================
--- jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/BeanUtils.java (original)
+++ jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/BeanUtils.java Sat Feb 26 04:51:00 2005
@@ -35,7 +35,7 @@
* @author Chris Audley
* @author Rey François
* @author Gregor Raýman
- * @version $Revision: 1.40 $ $Date: 2004/02/28 13:18:33 $
+ * @version $Revision$ $Date$
* @see BeanUtilsBean
*/
Propchange: jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/BeanUtils.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Feb 26 04:51:00 2005
@@ -1 +1 @@
-author date id revision
+Date Author Id Revision HeadURL
Propchange: jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/BeanUtilsBean.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Feb 26 04:51:00 2005
@@ -1 +1 @@
-author date id revision
+Date Author Id Revision HeadURL
Modified: jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/ConstructorUtils.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/ConstructorUtils.java?view=diff&r1=155400&r2=155401
==============================================================================
--- jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/ConstructorUtils.java (original)
+++ jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/ConstructorUtils.java Sat Feb 26 04:51:00 2005
@@ -43,7 +43,7 @@
* @author Jan Sorensen
* @author Robert Burrell Donkin
* @author Rodney Waldhoff
- * @version $Revision: 1.7 $ $Date: 2004/02/28 13:18:33 $
+ * @version $Revision$ $Date$
*/
public class ConstructorUtils {
Propchange: jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/ConstructorUtils.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Feb 26 04:51:00 2005
@@ -1 +1 @@
-author date id revision
+Date Author Id Revision HeadURL
Propchange: jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/ContextClassLoaderLocal.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Feb 26 04:51:00 2005
@@ -1 +1 @@
-author date id revision
+Date Author Id Revision HeadURL
Propchange: jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/ConversionException.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Feb 26 04:51:00 2005
@@ -1 +1 @@
-author date id revision
+Date Author Id Revision HeadURL
Modified: jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/ConvertUtils.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/ConvertUtils.java?view=diff&r1=155400&r2=155401
==============================================================================
--- jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/ConvertUtils.java (original)
+++ jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/ConvertUtils.java Sat Feb 26 04:51:00 2005
@@ -27,7 +27,7 @@
* @author Craig R. McClanahan
* @author Ralph Schaer
* @author Chris Audley
- * @version $Revision: 1.17 $ $Date: 2004/02/28 13:18:33 $
+ * @version $Revision$ $Date$
* @see ConvertUtilsBean
*/
Propchange: jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/ConvertUtils.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Feb 26 04:51:00 2005
@@ -1 +1 @@
-author date id revision
+Date Author Id Revision HeadURL
Modified: jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/ConvertUtilsBean.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/ConvertUtilsBean.java?view=diff&r1=155400&r2=155401
==============================================================================
--- jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/ConvertUtilsBean.java (original)
+++ jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/ConvertUtilsBean.java Sat Feb 26 04:51:00 2005
@@ -103,7 +103,7 @@
* @author Ralph Schaer
* @author Chris Audley
* @author James Strachan
- * @version $Revision: 1.13 $ $Date: 2004/07/18 14:58:22 $
+ * @version $Revision$ $Date$
* @since 1.7
*/
Propchange: jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/ConvertUtilsBean.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Feb 26 04:51:00 2005
@@ -1 +1 @@
-author date id revision
+Date Author Id Revision HeadURL
Modified: jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/Converter.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/Converter.java?view=diff&r1=155400&r2=155401
==============================================================================
--- jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/Converter.java (original)
+++ jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/Converter.java Sat Feb 26 04:51:00 2005
@@ -25,7 +25,7 @@
*
* @author Craig McClanahan
* @author Paulo Gaspar
- * @version $Revision: 1.7 $ $Date: 2004/02/28 13:18:33 $
+ * @version $Revision$ $Date$
* @since 1.3
*/
Propchange: jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/Converter.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Feb 26 04:51:00 2005
@@ -1 +1 @@
-author date id revision
+Date Author Id Revision HeadURL
Modified: jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/ConvertingWrapDynaBean.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/ConvertingWrapDynaBean.java?view=diff&r1=155400&r2=155401
==============================================================================
--- jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/ConvertingWrapDynaBean.java (original)
+++ jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/ConvertingWrapDynaBean.java Sat Feb 26 04:51:00 2005
@@ -28,7 +28,7 @@
* support the <code>contains()</code> and <code>remove()</code> methods.</p>
*
* @author James Strachan
- * @version $Revision: 1.3 $ $Date: 2002/01/23 22:35:58 $
+ * @version $Revision$ $Date$
*/
public class ConvertingWrapDynaBean extends WrapDynaBean {
Propchange: jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/ConvertingWrapDynaBean.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Modified: jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/DynaBean.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/DynaBean.java?view=diff&r1=155400&r2=155401
==============================================================================
--- jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/DynaBean.java (original)
+++ jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/DynaBean.java Sat Feb 26 04:51:00 2005
@@ -27,7 +27,7 @@
*
* @author Craig McClanahan
* @author Paulo Gaspar
- * @version $Revision: 1.9 $ $Date: 2004/02/28 13:18:33 $
+ * @version $Revision$ $Date$
*/
public interface DynaBean {
Propchange: jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/DynaBean.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Feb 26 04:51:00 2005
@@ -1 +1 @@
-author date id revision
+Date Author Id Revision HeadURL
Modified: jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/DynaClass.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/DynaClass.java?view=diff&r1=155400&r2=155401
==============================================================================
--- jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/DynaClass.java (original)
+++ jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/DynaClass.java Sat Feb 26 04:51:00 2005
@@ -31,7 +31,7 @@
* @author Craig McClanahan
* @author Michael Smith
* @author Paulo Gaspar
- * @version $Revision: 1.12 $ $Date: 2004/02/28 13:18:33 $
+ * @version $Revision$ $Date$
*/
public interface DynaClass {
Propchange: jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/DynaClass.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Feb 26 04:51:00 2005
@@ -1 +1 @@
-author date id revision
+Date Author Id Revision HeadURL
Modified: jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/DynaProperty.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/DynaProperty.java?view=diff&r1=155400&r2=155401
==============================================================================
--- jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/DynaProperty.java (original)
+++ jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/DynaProperty.java Sat Feb 26 04:51:00 2005
@@ -38,7 +38,7 @@
* All keys for maps must be of type String so no meta data is needed for map keys.</p>
*
* @author Craig R. McClanahan
- * @version $Revision: 1.13 $ $Date: 2004/02/28 13:18:33 $
+ * @version $Revision$ $Date$
*/
public class DynaProperty implements Serializable {
Propchange: jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/DynaProperty.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Feb 26 04:51:00 2005
@@ -1 +1 @@
-author date id revision
+Date Author Id Revision HeadURL
Modified: jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/JDBCDynaClass.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/JDBCDynaClass.java?view=diff&r1=155400&r2=155401
==============================================================================
--- jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/JDBCDynaClass.java (original)
+++ jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/JDBCDynaClass.java Sat Feb 26 04:51:00 2005
@@ -29,7 +29,7 @@
*
* @author Craig R. McClanahan
* @author George Franciscus
- * @version $Revision: 1.4 $ $Date: 2004/02/28 13:18:33 $
+ * @version $Revision$ $Date$
*/
abstract class JDBCDynaClass implements DynaClass, Serializable {
Propchange: jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/JDBCDynaClass.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Feb 26 04:51:00 2005
@@ -1 +1 @@
-author date id revision
+Date Author Id Revision HeadURL
Propchange: jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/LazyDynaBean.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Feb 26 04:51:00 2005
@@ -1 +1 @@
-author date id revision
+Date Author Id Revision HeadURL
Propchange: jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/LazyDynaClass.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Feb 26 04:51:00 2005
@@ -1 +1 @@
-author date id revision
+Date Author Id Revision HeadURL
Propchange: jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/LazyDynaMap.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Feb 26 04:51:00 2005
@@ -1 +1 @@
-author date id revision
+Date Author Id Revision HeadURL
Modified: jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/MappedPropertyDescriptor.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/MappedPropertyDescriptor.java?view=diff&r1=155400&r2=155401
==============================================================================
--- jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/MappedPropertyDescriptor.java (original)
+++ jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/MappedPropertyDescriptor.java Sat Feb 26 04:51:00 2005
@@ -40,7 +40,7 @@
*
* @author Rey François
* @author Gregor Raýman
- * @version $Revision: 1.20 $ $Date: 2004/08/10 15:41:56 $
+ * @version $Revision$ $Date$
*/
Propchange: jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/MappedPropertyDescriptor.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Feb 26 04:51:00 2005
@@ -1 +1 @@
-author date id revision
+Date Author Id Revision HeadURL
Propchange: jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/MethodUtils.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Feb 26 04:51:00 2005
@@ -1 +1 @@
-author date id revision
+Date Author Id Revision HeadURL
Modified: jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/MutableDynaClass.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/MutableDynaClass.java?view=diff&r1=155400&r2=155401
==============================================================================
--- jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/MutableDynaClass.java (original)
+++ jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/MutableDynaClass.java Sat Feb 26 04:51:00 2005
@@ -31,7 +31,7 @@
* @author Craig McClanahan
* @author Michael Smith
* @author Paulo Gaspar
- * @version $Revision: 1.8 $ $Date: 2004/02/28 13:18:33 $
+ * @version $Revision$ $Date$
*/
public interface MutableDynaClass extends DynaClass {
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org