harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From telli...@apache.org
Subject svn commit: r452415 [1/12] - in /incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test: java-internal/java/beans/beancontext/ java-internal/org/apache/harmony/beans/ java/org/apache/harmony/beans/tests/ java/org/apache/harmony/beans/tests/ja...
Date Tue, 03 Oct 2006 11:06:03 GMT
Author: tellison
Date: Tue Oct  3 04:05:57 2006
New Revision: 452415

URL: http://svn.apache.org/viewvc?view=rev&rev=452415
Log:
Tidy-up in BEANS test code.  Formatting, add Override tags, etc.

Modified:
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java-internal/java/beans/beancontext/BeanContextServicesSupportTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java-internal/java/beans/beancontext/BeanContextSupportTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java-internal/org/apache/harmony/beans/AllTests.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java-internal/org/apache/harmony/beans/ArrayPersistenceDelegateTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java-internal/org/apache/harmony/beans/ClassPersistenceDelegateTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java-internal/org/apache/harmony/beans/StringPersistenceDelegateTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/AllTests.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/AllTests.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/BeanDescriptorTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/BeansTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/CustomizedPersistenceDelegateTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/DefaultPersistenceDelegateTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/EncoderTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/EventHandlerTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/EventSetDescriptorTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/ExpressionTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/FeatureDescriptorTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/FozzzEditor.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/IndexedPropertyDescriptorTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/IntrospectionExceptionTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/IntrospectorTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/MethodDescriptorTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/ParameterDescriptorTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/PersistenceDelegateTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/PropertyChangeEventTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/PropertyChangeListenerProxyTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/PropertyChangeSupportTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/PropertyDescriptorTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/PropertyEditorManagerRegressionTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/PropertyEditorManagerTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/PropertyEditorSupportTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/PropertyVetoExceptionTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/SimpleBeanInfoTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/StatementTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/VetoableChangeListenerProxyTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/VetoableChangeSupportTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/XMLDecoderTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/XMLEncoderTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/beancontext/AllTests.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/beancontext/BeanContextChildSupportTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/beancontext/BeanContextEventTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/beancontext/BeanContextMembershipEventTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/beancontext/BeanContextServiceAvailableEventTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/beancontext/BeanContextServiceRevokedEventTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/beancontext/BeanContextServicesSupportTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/beancontext/BeanContextSupportTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/AType.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/ChildBeanBeanInfo.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/GrannyBean.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/GrannyBeanBeanInfo.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/MisprintBean.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/MisprintEvent.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/MisprintListenerr.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/NonSerializablePropertyChangeListener.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/OtherBean.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/ParentBeanBeanInfo.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/SampleBean.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/SampleBeanBeanInfo.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/SampleEvent.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/SampleException.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/SerializableBean.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/SerializablePropertyChangeListener.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/StandardBean.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/StandardBean2BeanInfo.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/StringEditor.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/TestEventHandler.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/beancontext/MethodInvocationRecords.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/beancontext/Utils.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/beancontext/mock/MockBeanContext.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/beancontext/mock/MockBeanContextChild.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/beancontext/mock/MockBeanContextChildComponentProxy.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/beancontext/mock/MockBeanContextChildDelegateS.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/beancontext/mock/MockBeanContextChildS.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/beancontext/mock/MockBeanContextContainerProxy.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/beancontext/mock/MockBeanContextDelegateS.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/beancontext/mock/MockBeanContextMembershipListener.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/beancontext/mock/MockBeanContextMembershipListenerS.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/beancontext/mock/MockBeanContextProxy.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/beancontext/mock/MockBeanContextProxyS.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/beancontext/mock/MockBeanContextServiceProvider.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/beancontext/mock/MockBeanContextServiceProviderBeanInfo.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/beancontext/mock/MockBeanContextServiceProviderS.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/beancontext/mock/MockBeanContextServiceRevokedListener.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/beancontext/mock/MockBeanContextServices.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/beancontext/mock/MockBeanContextServicesListener.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/beancontext/mock/MockBeanContextServicesListenerS.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/beancontext/mock/MockPropertyChangeListener.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/beancontext/mock/MockPropertyChangeListenerS.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/beancontext/mock/MockVetoChangeListener.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/beancontext/mock/MockVetoableChangeListener.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/beancontext/mock/MockVetoableChangeListenerS.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/beancontext/mock/MockVisibility.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/mock/FakeFox01.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/mock/FakeFox01BeanInfo.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/mock/FakeFox02.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/mock/FakeFox02BeanInfo.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/mock/Foz.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/mock/FozDefault.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/mock/Fozz.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/mock/FozzEditor.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/mock/Fozzz.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/mock/MockAppletBean.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/mock/MockAppletBean2.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/mock/MockAppletInitializer.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/mock/MockBean4Codec.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/mock/MockBean4CodecAdv.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/mock/MockBean4CodecBadGetter.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/mock/MockBean4CodecBadSetter.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/mock/MockBean4CodecPrimitives.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/mock/MockBean4Owner_Owner.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/mock/MockBean4Owner_Target.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/mock/MockBean4StaticField.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/mock/MockBean4StaticField_PD.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/mock/MockBeanListener2.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/mock/MockButton.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/mock/MockExceptionListener.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/mock/MockFakeListener.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/mock/MockFoo.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/mock/MockFoo2.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/mock/MockFoo2BeanInfo.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/mock/MockFoo2Parent.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/mock/MockFoo2ParentBeanInfo.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/mock/MockFooBeanInfo.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/mock/MockFooButton.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/mock/MockFooChild.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/mock/MockFooChildBeanInfo.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/mock/MockFooLabel.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/mock/MockFooLabelBeanInfo.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/mock/MockFooLiYang.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/mock/MockFooStop.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/mock/MockFooSub.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/mock/MockFooSubBeanInfo.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/mock/MockFooSubSub.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/mock/MockJavaBean.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/mock/MockPropertyChangeEvent.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/mock/MockPropertyChangeListener.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/mock/MockPropertyChangeListener2.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/mock/NonSerializedVCListener.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/mock/SerializedVCListener.java

Modified: incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java-internal/java/beans/beancontext/BeanContextServicesSupportTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java-internal/java/beans/beancontext/BeanContextServicesSupportTest.java?view=diff&rev=452415&r1=452414&r2=452415
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java-internal/java/beans/beancontext/BeanContextServicesSupportTest.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java-internal/java/beans/beancontext/BeanContextServicesSupportTest.java Tue Oct  3 04:05:57 2006
@@ -21,96 +21,105 @@
  */
 package java.beans.beancontext;
 
-import java.beans.beancontext.BeanContextServices;
-import java.beans.beancontext.BeanContextServicesSupport;
-import java.beans.beancontext.BeanContextServiceProvider;
+import java.util.Locale;
 
 import junit.framework.Test;
 import junit.framework.TestCase;
 import junit.framework.TestSuite;
 
 /**
- * Test class for java.beans.beancontext.BeanContextServicesSupport.<p>
- *
+ * Test class for java.beans.beancontext.BeanContextServicesSupport.
+ * <p>
+ * 
  * @author Sergey A. Krivenko
  * @version $Revision: 1.5.2.2 $
  */
 
 public class BeanContextServicesSupportTest extends TestCase {
 
-    /** STANDARD BEGINNING **/
+    /** STANDARD BEGINNING * */
 
     /**
-     * No arguments constructor to enable serialization.<p>
+     * No arguments constructor to enable serialization.
+     * <p>
      */
     public BeanContextServicesSupportTest() {
         super();
     }
 
     /**
-     * Constructs this test case with the given name.<p>
-     *
-     * @param name - The name for this test case.<p>
+     * Constructs this test case with the given name.
+     * <p>
+     * 
+     * @param name -
+     *            The name for this test case.
+     *            <p>
      */
     public BeanContextServicesSupportTest(String name) {
         super(name);
     }
 
-    /** TEST CONSTRUCTORS **/
+    /** TEST CONSTRUCTORS * */
 
-    /** 
-     * Test constructor with BeanContextServices, Locale, boolean, 
-     * boolean parameters.<p>
-     *
+    /**
+     * Test constructor with BeanContextServices, Locale, boolean, boolean
+     * parameters.
+     * <p>
+     * 
      * @see BeanContextServicesSupport#BeanContextServicesSupport(
-     * BeanContextServices, Locale, boolean, boolean)
+     *      BeanContextServices, Locale, boolean, boolean)
      */
     public void testConstructorBeanContextServicesLocalebooleanboolean() {
         new BeanContextServicesSupport(null, null, true, true);
     }
 
-    /** 
+    /**
      * Test constructor with BeanContextServices, Locale, boolean parameters
-     *
+     * 
      * @see BeanContextServicesSupport#BeanContextServicesSupport(
-     * BeanContextServices, Locale, boolean)
+     *      BeanContextServices, Locale, boolean)
      */
     public void testConstructorBeanContextServicesLocaleboolean() {
         new BeanContextServicesSupport(null, null, true);
     }
 
-    /** 
-     * Test constructor with BeanContextServices, Locale parameters.<p>
-     *
+    /**
+     * Test constructor with BeanContextServices, Locale parameters.
+     * <p>
+     * 
      * @see BeanContextServicesSupport#BeanContextServicesSupport(
-     * BeanContextServices, Locale)
+     *      BeanContextServices, Locale)
      */
     public void testConstructorBeanContextServicesLocale() {
         new BeanContextServicesSupport(null, null);
     }
 
-    /** 
-     * Test constructor with BeanContextServices parameter.<p>
-     *
+    /**
+     * Test constructor with BeanContextServices parameter.
+     * <p>
+     * 
      * @see BeanContextServicesSupport#BeanContextServicesSupport(
-     * BeanContextServices)
+     *      BeanContextServices)
      */
     public void testConstructorBeanContextServices() {
         new BeanContextServicesSupport(null);
     }
 
-    /** * Test constructor with no parameters.<p>
-     *
+    /**
+     * * Test constructor with no parameters.
+     * <p>
+     * 
      * @see BeanContextServicesSupport#BeanContextServicesSupport()
      */
     public void testConstructor() {
         new BeanContextServicesSupport();
     }
 
-    /** TEST METHODS **/
+    /** TEST METHODS * */
 
     /**
-     * Test method createBCSChild() with Object, Object parameters.<p>
+     * Test method createBCSChild() with Object, Object parameters.
+     * <p>
      */
     public void testCreateBCSChildObjectObject() {
         // Just call the method
@@ -119,7 +128,9 @@
     }
 
     /**
-     * Test method addService() with Class, BeanContextServiceProvider, boolean parameters.<p>
+     * Test method addService() with Class, BeanContextServiceProvider, boolean
+     * parameters.
+     * <p>
      */
     public void testAddServiceClassBeanContextServiceProviderboolean() {
         // Instantiate services and add service
@@ -130,7 +141,9 @@
     }
 
     /**
-     * Test method revokeService() with Class, BeanContextServiceProvider, boolean parameters.<p>
+     * Test method revokeService() with Class, BeanContextServiceProvider,
+     * boolean parameters.
+     * <p>
      */
     public void testRevokeServiceClassBeanContextServiceProviderboolean() {
         // Instantiate services, add and remove service
@@ -143,7 +156,9 @@
     }
 
     /**
-     * Test method addService() with Class, BeanContextServiceProvider parameters.<p>
+     * Test method addService() with Class, BeanContextServiceProvider
+     * parameters.
+     * <p>
      */
     public void testAddServiceClassBeanContextServiceProvider() {
         // Instantiate services and add service
@@ -152,7 +167,8 @@
     }
 
     /**
-     * Test method hasService() with Class parameter.<p>
+     * Test method hasService() with Class parameter.
+     * <p>
      */
     public void testHasServiceClass() {
         // Instantiate services and add service
@@ -164,7 +180,8 @@
     }
 
     /**
-     * Test method getBeanContextServicesPeer() with no parameters.<p>
+     * Test method getBeanContextServicesPeer() with no parameters.
+     * <p>
      */
     public void testGetBeanContextServicesPeer() {
         // Instantiate services
@@ -175,7 +192,8 @@
     }
 
     /**
-     * Test method releaseBeanContextResources() with no parameters.<p>
+     * Test method releaseBeanContextResources() with no parameters.
+     * <p>
      */
     public void testReleaseBeanContextResources() {
         // Instantiate services
@@ -186,63 +204,75 @@
     }
 
     /**
-     * Test method initializeBeanContextResources() with no parameters.<p>
+     * Test method initializeBeanContextResources() with no parameters.
+     * <p>
      */
     public void testInitializeBeanContextResources() {
         // Instantiate services
         BeanContextServicesSupport sup = new BeanContextServicesSupport();
         sup.initializeBeanContextResources();
 
-        //if (sup.proxy == null) {
-        //fail("The resources are not initialized");
-        //}
+        // if (sup.proxy == null) {
+        // fail("The resources are not initialized");
+        // }
     }
 
     /**
-     * Test method hasService() with Class=null parameter.<p>
+     * Test method hasService() with Class=null parameter.
+     * <p>
      */
     public void test_hasServiceLjava_lang_Class() {
         BeanContextServicesSupport obj = new BeanContextServicesSupport();
         try {
             obj.hasService(null);
             fail("NullPointerException expected");
-        } catch (NullPointerException t) {}
+        } catch (NullPointerException t) {
+        }
     }
 
     /**
-     * Test method removeBeanContextServicesListener() with BeanContextServicesListener=null parameter.<p>
+     * Test method removeBeanContextServicesListener() with
+     * BeanContextServicesListener=null parameter.
+     * <p>
      */
     public void test_removeBeanContextServicesListenerLjava_beans_beancontext_BeanContextServicesListener() {
         BeanContextServicesSupport obj = new BeanContextServicesSupport();
         try {
             obj.removeBeanContextServicesListener(null);
             fail("NullPointerException expected");
-        } catch (NullPointerException t) {}
+        } catch (NullPointerException t) {
+        }
     }
 
     /**
-     * Test method serviceAvailable() with BeanContextServiceAvailableEvent=null parameter.<p>
+     * Test method serviceAvailable() with BeanContextServiceAvailableEvent=null
+     * parameter.
+     * <p>
      */
     public void test_serviceAvailableLjava_beans_beancontext_BeanContextServiceAvailableEvent() {
         BeanContextServicesSupport obj = new BeanContextServicesSupport();
         try {
             obj.serviceAvailable(null);
             fail("NullPointerException expected");
-        } catch (NullPointerException t) {}
+        } catch (NullPointerException t) {
+        }
     }
 
     /**
-     * Test method serviceRevoked() with BeanContextServiceRevokedEvent=null parameter.<p>
+     * Test method serviceRevoked() with BeanContextServiceRevokedEvent=null
+     * parameter.
+     * <p>
      */
     public void test_serviceRevokedLjava_beans_beancontext_BeanContextServiceRevokedEvent() {
         BeanContextServicesSupport obj = new BeanContextServicesSupport();
         try {
             obj.serviceRevoked(null);
             fail("NullPointerException expected");
-        } catch (NullPointerException t) {}
+        } catch (NullPointerException t) {
+        }
     }
 
-    /** UTILITY METHODS **/
+    /** UTILITY METHODS * */
 
     /**
      * Fake implementation of provider
@@ -264,23 +294,28 @@
             }
 
             public void releaseService(BeanContextServices bcs,
-                    Object requestor, Object service) {}
+                    Object requestor, Object service) {
+            }
         };
     }
 
-    /** STANDARD ENDING **/
+    /** STANDARD ENDING * */
 
     /**
-     * Start testing from the command line.<p>
+     * Start testing from the command line.
+     * <p>
      */
     public static Test suite() {
         return new TestSuite(BeanContextServicesSupportTest.class);
     }
 
     /**
-     * Start testing from the command line.<p>
-     *
-     * @param args - Command line parameters.<p>
+     * Start testing from the command line.
+     * <p>
+     * 
+     * @param args -
+     *            Command line parameters.
+     *            <p>
      */
     public static void main(String args[]) {
         junit.textui.TestRunner.run(suite());

Modified: incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java-internal/java/beans/beancontext/BeanContextSupportTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java-internal/java/beans/beancontext/BeanContextSupportTest.java?view=diff&rev=452415&r1=452414&r2=452415
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java-internal/java/beans/beancontext/BeanContextSupportTest.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java-internal/java/beans/beancontext/BeanContextSupportTest.java Tue Oct  3 04:05:57 2006
@@ -21,9 +21,7 @@
  */
 package java.beans.beancontext;
 
-import java.beans.beancontext.BeanContextSupport;
-import java.beans.beancontext.BeanContextMembershipEvent;
-import java.beans.beancontext.BeanContextMembershipListener;
+import java.util.Locale;
 
 import junit.framework.Test;
 import junit.framework.TestCase;
@@ -32,9 +30,6 @@
 /**
  * Test class for java.beans.beancontext.BeanContextSupport.
  * <p>
- * 
- * @author Sergey A. Krivenko
- * @version $Revision: 1.4.4.2 $
  */
 
 public class BeanContextSupportTest extends TestCase {
@@ -53,8 +48,9 @@
      * Constructs this test case with the given name.
      * <p>
      * 
-     * @param name - The name for this test case.
-     *        <p>
+     * @param name -
+     *            The name for this test case.
+     *            <p>
      */
     public BeanContextSupportTest(String name) {
         super(name);
@@ -159,26 +155,22 @@
      * <p>
      */
     public void testRetainAllCollection() {
-    /*
-     * // Create an instance and add one child BeanContextSupport sup =
-     * new BeanContextSupport(); BeanContextChildSupport ch = new
-     * BeanContextChildSupport(); sup.add(ch);
-     *  // Create collection with an instance of the child that was
-     * added java.util.Collection col = new java.util.ArrayList();
-     * col.add(ch);
-     *  // Remove all children that are not in the collection // The
-     * collection must remain unchanged if (sup.retainAll(col)) {
-     * fail("False should be returned"); }
-     *  // Just one child must be present if (sup.size() != 1) {
-     * fail("The size of the collection must be 1"); }
-     *  // Add a new child in the collection and remove the old one
-     * col.clear(); col.add(new Object());
-     *  // Remove all children that are not in the collection // The
-     * collection must have 0 elements after that if
-     * (!sup.retainAll(col)) { fail("True should be returned"); }
-     *  // No children must be present if (sup.size() != 0) { fail("The
-     * size of the collection must be 0"); }
-     */
+        /*
+         * // Create an instance and add one child BeanContextSupport sup = new
+         * BeanContextSupport(); BeanContextChildSupport ch = new
+         * BeanContextChildSupport(); sup.add(ch); // Create collection with an
+         * instance of the child that was added java.util.Collection col = new
+         * java.util.ArrayList(); col.add(ch); // Remove all children that are
+         * not in the collection // The collection must remain unchanged if
+         * (sup.retainAll(col)) { fail("False should be returned"); } // Just
+         * one child must be present if (sup.size() != 1) { fail("The size of
+         * the collection must be 1"); } // Add a new child in the collection
+         * and remove the old one col.clear(); col.add(new Object()); // Remove
+         * all children that are not in the collection // The collection must
+         * have 0 elements after that if (!sup.retainAll(col)) { fail("True
+         * should be returned"); } // No children must be present if (sup.size() !=
+         * 0) { fail("The size of the collection must be 0"); }
+         */
     }
 
     /**
@@ -186,23 +178,20 @@
      * <p>
      */
     public void testRemoveAllCollection() {
-    /*
-     * // Create an instance and add one child BeanContextSupport sup =
-     * new BeanContextSupport(); BeanContextChildSupport ch = new
-     * BeanContextChildSupport(); sup.add(ch);
-     *  // Create collection with an instance of an arbitrary child
-     * java.util.Collection col = new java.util.ArrayList(); col.add(new
-     * Object());
-     *  // Remove all children that are in the collection // The
-     * collection should not change after that if (sup.removeAll(col)) {
-     * fail("False should be returned"); }
-     *  // Add a child that is a member of the BeanContext col.add(ch);
-     *  // Remove all children that are in the collection // The
-     * collection should change after that if (!sup.removeAll(col)) {
-     * fail("True should be returned"); }
-     *  // No children must be present if (sup.size() != 0) { fail("The
-     * size of the collection must be 0 but is " + sup.size()); }
-     */
+        /*
+         * // Create an instance and add one child BeanContextSupport sup = new
+         * BeanContextSupport(); BeanContextChildSupport ch = new
+         * BeanContextChildSupport(); sup.add(ch); // Create collection with an
+         * instance of an arbitrary child java.util.Collection col = new
+         * java.util.ArrayList(); col.add(new Object()); // Remove all children
+         * that are in the collection // The collection should not change after
+         * that if (sup.removeAll(col)) { fail("False should be returned"); } //
+         * Add a child that is a member of the BeanContext col.add(ch); //
+         * Remove all children that are in the collection // The collection
+         * should change after that if (!sup.removeAll(col)) { fail("True should
+         * be returned"); } // No children must be present if (sup.size() != 0) {
+         * fail("The size of the collection must be 0 but is " + sup.size()); }
+         */
     }
 
     /**
@@ -210,23 +199,20 @@
      * <p>
      */
     public void testContainsAllCollection() {
-    /*
-     * // Create an instance and add two children BeanContextSupport sup =
-     * new BeanContextSupport(); BeanContextChildSupport ch = new
-     * BeanContextChildSupport(); Object obj = new Object();
-     * sup.add(ch); sup.add(obj);
-     *  // Create collection with BCS children that just were added
-     * java.util.Collection col = new java.util.ArrayList();
-     * 
-     * for (java.util.Iterator it = sup.bcsChildren(); it.hasNext(); ) {
-     * col.add(it.next()); }
-     *  // Two collections have the same elements if
-     * (!sup.containsAll(col)) { fail("True should be returned"); }
-     * 
-     * sup.remove(obj);
-     *  // Now they are different if (sup.containsAll(col)) {
-     * fail("False should be returned"); }
-     */
+        /*
+         * // Create an instance and add two children BeanContextSupport sup =
+         * new BeanContextSupport(); BeanContextChildSupport ch = new
+         * BeanContextChildSupport(); Object obj = new Object(); sup.add(ch);
+         * sup.add(obj); // Create collection with BCS children that just were
+         * added java.util.Collection col = new java.util.ArrayList();
+         * 
+         * for (java.util.Iterator it = sup.bcsChildren(); it.hasNext(); ) {
+         * col.add(it.next()); } // Two collections have the same elements if
+         * (!sup.containsAll(col)) { fail("True should be returned"); }
+         * 
+         * sup.remove(obj); // Now they are different if (sup.containsAll(col)) {
+         * fail("False should be returned"); }
+         */
     }
 
     /**
@@ -234,17 +220,16 @@
      * <p>
      */
     public void testAddAllCollection() {
-    /*
-     * // Create an instance and add two children BeanContextSupport sup =
-     * new BeanContextSupport();
-     *  // Create collection with two elements java.util.Collection col =
-     * new java.util.ArrayList(); col.add(new
-     * BeanContextChildSupport()); col.add(new Object());
-     *  // Place two children into the BeanContext if (!sup.addAll(col)) {
-     * fail("True should be returned"); }
-     *  // Two children must be present if (sup.size() != 2) { fail("The
-     * size of the collection must be 2 but is " + sup.size()); }
-     */
+        /*
+         * // Create an instance and add two children BeanContextSupport sup =
+         * new BeanContextSupport(); // Create collection with two elements
+         * java.util.Collection col = new java.util.ArrayList(); col.add(new
+         * BeanContextChildSupport()); col.add(new Object()); // Place two
+         * children into the BeanContext if (!sup.addAll(col)) { fail("True
+         * should be returned"); } // Two children must be present if
+         * (sup.size() != 2) { fail("The size of the collection must be 2 but is " +
+         * sup.size()); }
+         */
     }
 
     /**
@@ -415,24 +400,22 @@
      * Test method vetoableChange() with PropertyChangeEvent parameter.
      * <p>
      */
-//    public void testVetoableChangePropertyChangeEvent() {
-//        /** @todo: not implemented yet in the class * */
-//         Create BeanContext instance
-//        BeanContextSupport sup = new BeanContextSupport();
-//         sup.vetoableChange(null);
-//    }
-
+    // public void testVetoableChangePropertyChangeEvent() {
+    // /** @todo: not implemented yet in the class * */
+    // Create BeanContext instance
+    // BeanContextSupport sup = new BeanContextSupport();
+    // sup.vetoableChange(null);
+    // }
     /**
      * Test method propertyChange() with PropertyChangeEvent parameter.
      * <p>
      */
-//    public void testPropertyChangePropertyChangeEvent() {
-//        /** @todo: not implemented yet in the class * */
-//        // Create BeanContext instance
-//        BeanContextSupport sup = new BeanContextSupport();
-//        // sup.propertyChange(null);
-//    }
-
+    // public void testPropertyChangePropertyChangeEvent() {
+    // /** @todo: not implemented yet in the class * */
+    // // Create BeanContext instance
+    // BeanContextSupport sup = new BeanContextSupport();
+    // // sup.propertyChange(null);
+    // }
     /**
      * Test method isEmpty() with no parameters.
      * <p>
@@ -454,15 +437,14 @@
      * <p>
      */
     public void testClear() {
-    /*
-     * // Create BeanContext instance BeanContextSupport sup = new
-     * BeanContextSupport();
-     *  // Add a child and then clear sup.add(new Object());
-     * sup.clear();
-     * 
-     * if (!sup.isEmpty()) { fail("The collection of children should be
-     * empty"); }
-     */
+        /*
+         * // Create BeanContext instance BeanContextSupport sup = new
+         * BeanContextSupport(); // Add a child and then clear sup.add(new
+         * Object()); sup.clear();
+         * 
+         * if (!sup.isEmpty()) { fail("The collection of children should be
+         * empty"); }
+         */
     }
 
     /**
@@ -473,7 +455,8 @@
         // Create BeanContext instance
         BeanContextSupport sup = new BeanContextSupport();
 
-        assertEquals("The size of the collection should be equal to 0", 0, sup.size());
+        assertEquals("The size of the collection should be equal to 0", 0, sup
+                .size());
 
         sup.add(new Object());
 
@@ -491,7 +474,8 @@
         try {
             obj.getResourceAsStream(new String(), null);
             fail("NullPointerException expected");
-        } catch (NullPointerException t) {}
+        } catch (NullPointerException t) {
+        }
     }
 
     /**
@@ -504,20 +488,24 @@
         try {
             obj.getResourceAsStream(null, null);
             fail("NullPointerException expected");
-        } catch (NullPointerException t) {}
+        } catch (NullPointerException t) {
+        }
     }
 
     /**
      * Test method vetoableChange() with PropertyChangeEvent=null parameter.
      * <p>
-     * @throws Exception 
+     * 
+     * @throws Exception
      */
-    public void test_vetoableChangeLjava_beans_PropertyChangeEvent() throws Exception {
+    public void test_vetoableChangeLjava_beans_PropertyChangeEvent()
+            throws Exception {
         BeanContextSupport obj = new BeanContextSupport();
         try {
             obj.vetoableChange(null);
             fail("NullPointerException expected");
-        } catch (NullPointerException t) {}
+        } catch (NullPointerException t) {
+        }
     }
 
     /**
@@ -530,7 +518,8 @@
         try {
             obj.getResource("", null);
             fail("NullPointerException expected");
-        } catch (NullPointerException t) {}
+        } catch (NullPointerException t) {
+        }
     }
 
     /**
@@ -543,7 +532,8 @@
         try {
             obj.getResource(null, null);
             fail("NullPointerException expected");
-        } catch (NullPointerException t) {}
+        } catch (NullPointerException t) {
+        }
     }
 
     /** UTILITY METHODS * */
@@ -554,9 +544,11 @@
     private BeanContextMembershipListener getBeanContextMembershipListener() {
         return new BeanContextMembershipListener() {
 
-            public void childrenAdded(BeanContextMembershipEvent bcme) {}
+            public void childrenAdded(BeanContextMembershipEvent bcme) {
+            }
 
-            public void childrenRemoved(BeanContextMembershipEvent bcme) {}
+            public void childrenRemoved(BeanContextMembershipEvent bcme) {
+            }
         };
     }
 
@@ -574,8 +566,9 @@
      * Start testing from the command line.
      * <p>
      * 
-     * @param args - Command line parameters.
-     *        <p>
+     * @param args -
+     *            Command line parameters.
+     *            <p>
      */
     public static void main(String args[]) {
         junit.textui.TestRunner.run(suite());

Modified: incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java-internal/org/apache/harmony/beans/AllTests.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java-internal/org/apache/harmony/beans/AllTests.java?view=diff&rev=452415&r1=452414&r2=452415
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java-internal/org/apache/harmony/beans/AllTests.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java-internal/org/apache/harmony/beans/AllTests.java Tue Oct  3 04:05:57 2006
@@ -25,13 +25,13 @@
  */
 public class AllTests {
 
-	public static Test suite() {
-		TestSuite suite = new TestSuite("Tests for org.apache.harmony.beans");
-		// $JUnit-BEGIN$
-		suite.addTestSuite(ArrayPersistenceDelegateTest.class);
-		suite.addTestSuite(ClassPersistenceDelegateTest.class);
-		suite.addTestSuite(StringPersistenceDelegateTest.class);
-		// $JUnit-END$
-		return suite;
-	}
+    public static Test suite() {
+        TestSuite suite = new TestSuite("Tests for org.apache.harmony.beans");
+        // $JUnit-BEGIN$
+        suite.addTestSuite(ArrayPersistenceDelegateTest.class);
+        suite.addTestSuite(ClassPersistenceDelegateTest.class);
+        suite.addTestSuite(StringPersistenceDelegateTest.class);
+        // $JUnit-END$
+        return suite;
+    }
 }

Modified: incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java-internal/org/apache/harmony/beans/ArrayPersistenceDelegateTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java-internal/org/apache/harmony/beans/ArrayPersistenceDelegateTest.java?view=diff&rev=452415&r1=452414&r2=452415
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java-internal/org/apache/harmony/beans/ArrayPersistenceDelegateTest.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java-internal/org/apache/harmony/beans/ArrayPersistenceDelegateTest.java Tue Oct  3 04:05:57 2006
@@ -17,9 +17,9 @@
 
 package org.apache.harmony.beans;
 
-import java.lang.reflect.Array;
 import java.beans.Encoder;
 import java.beans.Expression;
+import java.lang.reflect.Array;
 
 import junit.framework.TestCase;
 
@@ -28,33 +28,34 @@
  */
 public class ArrayPersistenceDelegateTest extends TestCase {
 
-	private ArrayPersistenceDelegate pd = null;
+    private ArrayPersistenceDelegate pd = null;
 
-	protected void setUp() throws Exception {
-		super.setUp();
-		pd = new ArrayPersistenceDelegate();
-	}
-
-	public void testMutates() {
-		assertFalse(pd.mutatesTo(new int[] { 1 }, null));
-		assertFalse(pd.mutatesTo(null, null));
-		assertFalse(pd.mutatesTo(new int[1], new int[2]));
-		assertTrue(pd.mutatesTo(new int[] { 1, 3 }, new int[] { 1, 2 }));
-	}
-
-	public void testInitialize() {
-		// TBD
-	}
-
-	public void testInstantiate_Normal() throws Exception {
-		Object obj = new int[] { 1, 2, 3 };
-		Expression exp = pd.instantiate(obj, new Encoder());
-		assertSame(obj, exp.getValue());
-		assertSame(Array.class, exp.getTarget());
-		assertEquals("newInstance", exp.getMethodName());
-		assertEquals(2, exp.getArguments().length);
-		assertSame(Integer.TYPE, exp.getArguments()[0]);
-		assertEquals(new Integer(3), exp.getArguments()[1]);
-	}
+    @Override
+    protected void setUp() throws Exception {
+        super.setUp();
+        pd = new ArrayPersistenceDelegate();
+    }
+
+    public void testMutates() {
+        assertFalse(pd.mutatesTo(new int[] { 1 }, null));
+        assertFalse(pd.mutatesTo(null, null));
+        assertFalse(pd.mutatesTo(new int[1], new int[2]));
+        assertTrue(pd.mutatesTo(new int[] { 1, 3 }, new int[] { 1, 2 }));
+    }
+
+    public void testInitialize() {
+        // TBD
+    }
+
+    public void testInstantiate_Normal() throws Exception {
+        Object obj = new int[] { 1, 2, 3 };
+        Expression exp = pd.instantiate(obj, new Encoder());
+        assertSame(obj, exp.getValue());
+        assertSame(Array.class, exp.getTarget());
+        assertEquals("newInstance", exp.getMethodName());
+        assertEquals(2, exp.getArguments().length);
+        assertSame(Integer.TYPE, exp.getArguments()[0]);
+        assertEquals(new Integer(3), exp.getArguments()[1]);
+    }
 
 }

Modified: incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java-internal/org/apache/harmony/beans/ClassPersistenceDelegateTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java-internal/org/apache/harmony/beans/ClassPersistenceDelegateTest.java?view=diff&rev=452415&r1=452414&r2=452415
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java-internal/org/apache/harmony/beans/ClassPersistenceDelegateTest.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java-internal/org/apache/harmony/beans/ClassPersistenceDelegateTest.java Tue Oct  3 04:05:57 2006
@@ -29,6 +29,7 @@
 
     private java_lang_ClassPersistenceDelegate pd = null;
 
+    @Override
     protected void setUp() throws Exception {
         super.setUp();
         pd = new java_lang_ClassPersistenceDelegate();
@@ -64,7 +65,6 @@
         assertEquals(1, exp.getArguments().length);
         assertNull(exp.getArguments()[0]);
     }
-
 
     public void testInstantiate_Class() throws Exception {
         Expression exp = pd.instantiate(Class.class, new Encoder());

Modified: incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java-internal/org/apache/harmony/beans/StringPersistenceDelegateTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java-internal/org/apache/harmony/beans/StringPersistenceDelegateTest.java?view=diff&rev=452415&r1=452414&r2=452415
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java-internal/org/apache/harmony/beans/StringPersistenceDelegateTest.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java-internal/org/apache/harmony/beans/StringPersistenceDelegateTest.java Tue Oct  3 04:05:57 2006
@@ -29,6 +29,7 @@
 
     private java_lang_StringPersistenceDelegate pd = null;
 
+    @Override
     protected void setUp() throws Exception {
         super.setUp();
         pd = new java_lang_StringPersistenceDelegate();

Modified: incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/AllTests.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/AllTests.java?view=diff&rev=452415&r1=452414&r2=452415
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/AllTests.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/AllTests.java Tue Oct  3 04:05:57 2006
@@ -25,16 +25,19 @@
  */
 public class AllTests {
 
-	public static void main(String[] args) {
-		junit.textui.TestRunner.run(AllTests.suite());
-	}
+    public static void main(String[] args) {
+        junit.textui.TestRunner.run(AllTests.suite());
+    }
 
-	public static Test suite() {
-		TestSuite suite = new TestSuite("Beans test suites");
-		// $JUnit-BEGIN$
-		suite.addTest(org.apache.harmony.beans.tests.java.beans.AllTests.suite());
-		suite.addTest(org.apache.harmony.beans.tests.java.beans.beancontext.AllTests.suite());
-		// $JUnit-END$
-		return suite;
-	}
+    public static Test suite() {
+        TestSuite suite = new TestSuite("Beans test suites");
+        // $JUnit-BEGIN$
+        suite.addTest(org.apache.harmony.beans.tests.java.beans.AllTests
+                .suite());
+        suite
+                .addTest(org.apache.harmony.beans.tests.java.beans.beancontext.AllTests
+                        .suite());
+        // $JUnit-END$
+        return suite;
+    }
 }

Modified: incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/AllTests.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/AllTests.java?view=diff&rev=452415&r1=452414&r2=452415
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/AllTests.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/AllTests.java Tue Oct  3 04:05:57 2006
@@ -22,42 +22,42 @@
 
 public class AllTests {
 
-	public static Test suite() {
-		TestSuite suite = new TestSuite(
+    public static Test suite() {
+        TestSuite suite = new TestSuite(
                 "Suite for org.apache.harmony.beans.tests.java.beans");
-		// $JUnit-BEGIN$
-		suite.addTestSuite(IntrospectorTest.class);
-		suite.addTestSuite(PropertyChangeSupportTest.class);
-		suite.addTestSuite(DefaultPersistenceDelegateTest.class);
-		suite.addTestSuite(PersistenceDelegateTest.class);
-		suite.addTestSuite(CustomizedPersistenceDelegateTest.class);
-		suite.addTestSuite(PropertyChangeListenerProxyTest.class);
-		suite.addTestSuite(StatementTest.class);
-		suite.addTestSuite(PropertyChangeEventTest.class);
-		suite.addTestSuite(EncoderTest.class);
-		suite.addTestSuite(SimpleBeanInfoTest.class);
-		suite.addTestSuite(PropertyVetoExceptionTest.class);
-		suite.addTestSuite(XMLEncoderTest.class);
-		suite.addTestSuite(BeansTest.class);
-		suite.addTestSuite(BeanDescriptorTest.class);
-		suite.addTestSuite(MethodDescriptorTest.class);
-		suite.addTestSuite(PersistenceDelegateTest.class);
-		suite.addTestSuite(ExpressionTest.class);
-		suite.addTestSuite(IndexedPropertyDescriptorTest.class);
-		suite.addTestSuite(EventSetDescriptorTest.class);
-		suite.addTestSuite(IntrospectionExceptionTest.class);
-		suite.addTestSuite(FeatureDescriptorTest.class);
-		suite.addTestSuite(CustomizedPersistenceDelegateTest.class);
-		suite.addTestSuite(VetoableChangeListenerProxyTest.class);
-		suite.addTestSuite(VetoableChangeSupportTest.class);
-		suite.addTestSuite(PropertyEditorManagerTest.class);
-		suite.addTestSuite(ParameterDescriptorTest.class);
-		suite.addTestSuite(PropertyEditorSupportTest.class);
-		suite.addTestSuite(PropertyDescriptorTest.class);
-		suite.addTestSuite(XMLDecoderTest.class);
-		suite.addTestSuite(EventHandlerTest.class);
+        // $JUnit-BEGIN$
+        suite.addTestSuite(IntrospectorTest.class);
+        suite.addTestSuite(PropertyChangeSupportTest.class);
+        suite.addTestSuite(DefaultPersistenceDelegateTest.class);
+        suite.addTestSuite(PersistenceDelegateTest.class);
+        suite.addTestSuite(CustomizedPersistenceDelegateTest.class);
+        suite.addTestSuite(PropertyChangeListenerProxyTest.class);
+        suite.addTestSuite(StatementTest.class);
+        suite.addTestSuite(PropertyChangeEventTest.class);
+        suite.addTestSuite(EncoderTest.class);
+        suite.addTestSuite(SimpleBeanInfoTest.class);
+        suite.addTestSuite(PropertyVetoExceptionTest.class);
+        suite.addTestSuite(XMLEncoderTest.class);
+        suite.addTestSuite(BeansTest.class);
+        suite.addTestSuite(BeanDescriptorTest.class);
+        suite.addTestSuite(MethodDescriptorTest.class);
+        suite.addTestSuite(PersistenceDelegateTest.class);
+        suite.addTestSuite(ExpressionTest.class);
+        suite.addTestSuite(IndexedPropertyDescriptorTest.class);
+        suite.addTestSuite(EventSetDescriptorTest.class);
+        suite.addTestSuite(IntrospectionExceptionTest.class);
+        suite.addTestSuite(FeatureDescriptorTest.class);
+        suite.addTestSuite(CustomizedPersistenceDelegateTest.class);
+        suite.addTestSuite(VetoableChangeListenerProxyTest.class);
+        suite.addTestSuite(VetoableChangeSupportTest.class);
+        suite.addTestSuite(PropertyEditorManagerTest.class);
+        suite.addTestSuite(ParameterDescriptorTest.class);
+        suite.addTestSuite(PropertyEditorSupportTest.class);
+        suite.addTestSuite(PropertyDescriptorTest.class);
+        suite.addTestSuite(XMLDecoderTest.class);
+        suite.addTestSuite(EventHandlerTest.class);
 
-		// $JUnit-END$
-		return suite;
-	}
+        // $JUnit-END$
+        return suite;
+    }
 }

Modified: incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/BeanDescriptorTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/BeanDescriptorTest.java?view=diff&rev=452415&r1=452414&r2=452415
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/BeanDescriptorTest.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/BeanDescriptorTest.java Tue Oct  3 04:05:57 2006
@@ -23,158 +23,159 @@
 import java.beans.PropertyChangeListener;
 import java.util.HashSet;
 
-import org.apache.harmony.beans.tests.support.mock.MockJavaBean;
-
 import junit.framework.TestCase;
 
+import org.apache.harmony.beans.tests.support.mock.MockJavaBean;
+
 /**
  * Unit test for BeanDescriptor.
  */
 public class BeanDescriptorTest extends TestCase {
 
-	/*
-	 * @see TestCase#setUp()
-	 */
-	protected void setUp() throws Exception {
-		super.setUp();
-	}
-
-	/*
-	 * @see TestCase#tearDown()
-	 */
-	protected void tearDown() throws Exception {
-		super.tearDown();
-	}
-
-	/*
-	 * Class under test for void BeanDescriptor(Class)
-	 */
-	public void testBeanDescriptorClass() {
-		String beanName = "BeanDescriptorTest.bean";
-		MockJavaBean bean = new MockJavaBean(beanName);
-		Class beanClass = bean.getClass();
-		BeanDescriptor bd = new BeanDescriptor(beanClass);
-
-		assertSame(beanClass, bd.getBeanClass());
-		String displayName = beanClass.getName().substring(
-				beanClass.getName().lastIndexOf('.') + 1);
-		assertEquals(displayName, bd.getDisplayName());
-		assertEquals(displayName, bd.getName());
-		assertEquals(displayName, bd.getShortDescription());
-
-		assertNotNull(bd.attributeNames());
-		assertFalse(bd.isExpert());
-		assertFalse(bd.isHidden());
-		assertFalse(bd.isPreferred());
-	}
-
-	public void testBeanDescriptorClass_Null() {
-		try {
-			new BeanDescriptor(null);
-			fail("Should throw NullPointerException.");
-		} catch (NullPointerException e) {
-		}
-	}
-
-	/*
-	 * Class under test for void BeanDescriptor(Class, Class)
-	 */
-	public void testBeanDescriptorClassClass() {
-		/*
-		 * String beanName = "BeanDescriptorTest.bean"; MockJavaBean bean = new
-		 * MockJavaBean(beanName); Class beanClass = bean.getClass(); Customizer
-		 * customizer = new MyCustomizer(); Class cusClass =
-		 * customizer.getClass(); BeanDescriptor bd = new
-		 * BeanDescriptor(beanClass, cusClass);
-		 * 
-		 * assertSame(beanClass, bd.getBeanClass()); assertSame(cusClass,
-		 * bd.getCustomizerClass());
-		 * 
-		 * String displayName = beanClass.getName().substring(
-		 * beanClass.getName().lastIndexOf('.') + 1); assertEquals(displayName,
-		 * bd.getDisplayName()); assertEquals(displayName, bd.getName());
-		 * assertEquals(displayName, bd.getShortDescription());
-		 * 
-		 * assertNotNull(bd.attributeNames()); assertFalse(bd.isExpert());
-		 * assertFalse(bd.isHidden()); assertFalse(bd.isPreferred());
-		 */
-	}
-
-	public void testBeanDescriptorClassClass_BeanClassNull() {
-		/*
-		 * Class beanClass = null; Customizer customizer = new MyCustomizer();
-		 * Class cusClass = customizer.getClass(); try { BeanDescriptor bd = new
-		 * BeanDescriptor(beanClass, cusClass); fail("Should throw
-		 * NullPointerException"); } catch (NullPointerException e) { }
-		 */
-	}
-
-	public void testBeanDescriptorClassClass_CustomizerClassNull() {
-		String beanName = "BeanDescriptorTest.bean";
-		MockJavaBean bean = new MockJavaBean(beanName);
-		Class beanClass = bean.getClass();
-		Class cusClass = null;
-		BeanDescriptor bd = new BeanDescriptor(beanClass, cusClass);
-
-		assertSame(beanClass, bd.getBeanClass());
-		assertNull(bd.getCustomizerClass());
-
-		String displayName = beanClass.getName().substring(
-				beanClass.getName().lastIndexOf('.') + 1);
-		assertEquals(displayName, bd.getDisplayName());
-		assertEquals(displayName, bd.getName());
-		assertEquals(displayName, bd.getShortDescription());
-
-		assertNotNull(bd.attributeNames());
-		assertFalse(bd.isExpert());
-		assertFalse(bd.isHidden());
-		assertFalse(bd.isPreferred());
-	}
+    /*
+     * @see TestCase#setUp()
+     */
+    @Override
+    protected void setUp() throws Exception {
+        super.setUp();
+    }
+
+    /*
+     * @see TestCase#tearDown()
+     */
+    @Override
+    protected void tearDown() throws Exception {
+        super.tearDown();
+    }
+
+    /*
+     * Class under test for void BeanDescriptor(Class)
+     */
+    public void testBeanDescriptorClass() {
+        String beanName = "BeanDescriptorTest.bean";
+        MockJavaBean bean = new MockJavaBean(beanName);
+        Class beanClass = bean.getClass();
+        BeanDescriptor bd = new BeanDescriptor(beanClass);
+
+        assertSame(beanClass, bd.getBeanClass());
+        String displayName = beanClass.getName().substring(
+                beanClass.getName().lastIndexOf('.') + 1);
+        assertEquals(displayName, bd.getDisplayName());
+        assertEquals(displayName, bd.getName());
+        assertEquals(displayName, bd.getShortDescription());
+
+        assertNotNull(bd.attributeNames());
+        assertFalse(bd.isExpert());
+        assertFalse(bd.isHidden());
+        assertFalse(bd.isPreferred());
+    }
+
+    public void testBeanDescriptorClass_Null() {
+        try {
+            new BeanDescriptor(null);
+            fail("Should throw NullPointerException.");
+        } catch (NullPointerException e) {
+        }
+    }
+
+    /*
+     * Class under test for void BeanDescriptor(Class, Class)
+     */
+    public void testBeanDescriptorClassClass() {
+        /*
+         * String beanName = "BeanDescriptorTest.bean"; MockJavaBean bean = new
+         * MockJavaBean(beanName); Class beanClass = bean.getClass(); Customizer
+         * customizer = new MyCustomizer(); Class cusClass =
+         * customizer.getClass(); BeanDescriptor bd = new
+         * BeanDescriptor(beanClass, cusClass);
+         * 
+         * assertSame(beanClass, bd.getBeanClass()); assertSame(cusClass,
+         * bd.getCustomizerClass());
+         * 
+         * String displayName = beanClass.getName().substring(
+         * beanClass.getName().lastIndexOf('.') + 1); assertEquals(displayName,
+         * bd.getDisplayName()); assertEquals(displayName, bd.getName());
+         * assertEquals(displayName, bd.getShortDescription());
+         * 
+         * assertNotNull(bd.attributeNames()); assertFalse(bd.isExpert());
+         * assertFalse(bd.isHidden()); assertFalse(bd.isPreferred());
+         */
+    }
+
+    public void testBeanDescriptorClassClass_BeanClassNull() {
+        /*
+         * Class beanClass = null; Customizer customizer = new MyCustomizer();
+         * Class cusClass = customizer.getClass(); try { BeanDescriptor bd = new
+         * BeanDescriptor(beanClass, cusClass); fail("Should throw
+         * NullPointerException"); } catch (NullPointerException e) { }
+         */
+    }
+
+    public void testBeanDescriptorClassClass_CustomizerClassNull() {
+        String beanName = "BeanDescriptorTest.bean";
+        MockJavaBean bean = new MockJavaBean(beanName);
+        Class beanClass = bean.getClass();
+        Class cusClass = null;
+        BeanDescriptor bd = new BeanDescriptor(beanClass, cusClass);
+
+        assertSame(beanClass, bd.getBeanClass());
+        assertNull(bd.getCustomizerClass());
+
+        String displayName = beanClass.getName().substring(
+                beanClass.getName().lastIndexOf('.') + 1);
+        assertEquals(displayName, bd.getDisplayName());
+        assertEquals(displayName, bd.getName());
+        assertEquals(displayName, bd.getShortDescription());
+
+        assertNotNull(bd.attributeNames());
+        assertFalse(bd.isExpert());
+        assertFalse(bd.isHidden());
+        assertFalse(bd.isPreferred());
+    }
 
     class MyCustomizer extends Component implements Customizer {
 
-		HashSet listeners;
+        HashSet listeners;
+
+        Object bean;
+
+        public MyCustomizer() {
+            this.listeners = new HashSet();
+            this.bean = null;
+        }
 
-		Object bean;
+        /*
+         * (non-Javadoc)
+         * 
+         * @see java.beans.Customizer#addPropertyChangeListener(java.beans.PropertyChangeListener)
+         */
+        @Override
+        public void addPropertyChangeListener(PropertyChangeListener listener) {
+            this.listeners.add(listener);
+        }
+
+        /*
+         * (non-Javadoc)
+         * 
+         * @see java.beans.Customizer#removePropertyChangeListener(java.beans.PropertyChangeListener)
+         */
+        @Override
+        public void removePropertyChangeListener(PropertyChangeListener listener) {
+            this.listeners.remove(listener);
+        }
+
+        /*
+         * (non-Javadoc)
+         * 
+         * @see java.beans.Customizer#setObject(java.lang.Object)
+         */
+        public void setObject(Object bean) {
+            this.bean = bean;
+        }
+    }
 
-		public MyCustomizer() {
-			this.listeners = new HashSet();
-			this.bean = null;
-		}
-
-		/*
-		 * (non-Javadoc)
-		 * 
-		 * @see java.beans.Customizer#addPropertyChangeListener(java.beans.PropertyChangeListener)
-		 */
-		public void addPropertyChangeListener(PropertyChangeListener listener) {
-			this.listeners.add(listener);
-		}
-
-		/*
-		 * (non-Javadoc)
-		 * 
-		 * @see java.beans.Customizer#removePropertyChangeListener(java.beans.PropertyChangeListener)
-		 */
-		public void removePropertyChangeListener(PropertyChangeListener listener) {
-			this.listeners.remove(listener);
-		}
-
-		/*
-		 * (non-Javadoc)
-		 * 
-		 * @see java.beans.Customizer#setObject(java.lang.Object)
-		 */
-		public void setObject(Object bean) {
-			this.bean = bean;
-		}
-	}
-    
-    
-    
     /**
-     * @tests java.beans.BeanDescriptor#BeanDescriptor(
-     *        java.lang.Class)
+     * @tests java.beans.BeanDescriptor#BeanDescriptor( java.lang.Class)
      */
     public void test_Ctor1_NullPointerExpection() {
         try {
@@ -186,8 +187,7 @@
     }
 
     /**
-     * @tests java.beans.BeanDescriptor#BeanDescriptor(
-     *        java.lang.Class,
+     * @tests java.beans.BeanDescriptor#BeanDescriptor( java.lang.Class,
      *        java.lang.Class)
      */
     public void test_Ctor2_NullPointerExpection() {
@@ -198,12 +198,12 @@
         } catch (NullPointerException e) {
         }
     }
-    
+
     /**
      * The test checks the method testNullaryConstructor()
      */
     public void testNullaryConstructor() {
-        BeanDescriptor bd= new BeanDescriptor(String.class);
+        BeanDescriptor bd = new BeanDescriptor(String.class);
         assertEquals(bd.getName(), "String");
     }
 }

Modified: incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/BeansTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/BeansTest.java?view=diff&rev=452415&r1=452414&r2=452415
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/BeansTest.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/BeansTest.java Tue Oct  3 04:05:57 2006
@@ -44,14 +44,11 @@
  */
 public class BeansTest extends TestCase {
 
-    private final String MOCK_JAVA_BEAN2 =
-            "tests.api.java.beans.mock.MockJavaBean2";
+    private final String MOCK_JAVA_BEAN2 = "tests.api.java.beans.mock.MockJavaBean2";
 
-    private final String MOCK_JAVA_BEAN2_FILE =
-            "binary/java/beans/mock/MockJavaBean2.bin";
+    private final String MOCK_JAVA_BEAN2_FILE = "binary/java/beans/mock/MockJavaBean2.bin";
 
-    private final String MOCK_JAVA_BEAN2_SFILE =
-            "serialization/java/beans/mock/MockJavaBean2.ser";
+    private final String MOCK_JAVA_BEAN2_SFILE = "serialization/java/beans/mock/MockJavaBean2.ser";
 
     /*
      * public Beans()
@@ -93,9 +90,8 @@
         ClassLoader loader = new BinClassLoader();
         Object bean = Beans.instantiate(loader, MOCK_JAVA_BEAN2);
 
-        assertEquals("as_class",
-                (String) bean.getClass().getMethod("getPropertyOne",
-                        (Class[]) null).invoke(bean, (Object[]) null));
+        assertEquals("as_class", (String) bean.getClass().getMethod(
+                "getPropertyOne", (Class[]) null).invoke(bean, (Object[]) null));
         assertSame(loader, bean.getClass().getClassLoader());
     }
 
@@ -103,9 +99,8 @@
         ClassLoader loader = new SerClassLoader();
         Object bean = Beans.instantiate(loader, MOCK_JAVA_BEAN2);
 
-        assertEquals("as_object",
-                (String) bean.getClass().getMethod("getPropertyOne",
-                        (Class[]) null).invoke(bean, (Object[]) null));
+        assertEquals("as_object", (String) bean.getClass().getMethod(
+                "getPropertyOne", (Class[]) null).invoke(bean, (Object[]) null));
         assertSame(loader, bean.getClass().getClassLoader());
     }
 
@@ -123,7 +118,8 @@
         try {
             Beans.instantiate(null, null);
             fail("Should throw NullPointerException");
-        } catch (NullPointerException e) {}
+        } catch (NullPointerException e) {
+        }
     }
 
     /*
@@ -136,9 +132,8 @@
         BeanContext context = new BeanContextSupport();
         Object bean = Beans.instantiate(loader, MOCK_JAVA_BEAN2, context);
 
-        assertEquals("as_class",
-                (String) bean.getClass().getMethod("getPropertyOne",
-                        (Class[]) null).invoke(bean, (Object[]) null));
+        assertEquals("as_class", (String) bean.getClass().getMethod(
+                "getPropertyOne", (Class[]) null).invoke(bean, (Object[]) null));
         assertSame(loader, bean.getClass().getClassLoader());
         assertTrue(context.contains(bean));
     }
@@ -149,9 +144,8 @@
         BeanContext context = new BeanContextSupport();
         Object bean = Beans.instantiate(loader, MOCK_JAVA_BEAN2, context);
 
-        assertEquals("as_object",
-                (String) bean.getClass().getMethod("getPropertyOne",
-                        (Class[]) null).invoke(bean, (Object[]) null));
+        assertEquals("as_object", (String) bean.getClass().getMethod(
+                "getPropertyOne", (Class[]) null).invoke(bean, (Object[]) null));
         assertSame(loader, bean.getClass().getClassLoader());
         assertTrue(context.contains(bean));
     }
@@ -176,7 +170,8 @@
         try {
             Beans.instantiate(loader, null, context);
             fail("Should throw NullPointerException.");
-        } catch (NullPointerException e) {}
+        } catch (NullPointerException e) {
+        }
     }
 
     public void testInstantiateClassLoaderStringBeanContext_ContextNull()
@@ -200,9 +195,8 @@
         Object bean = Beans.instantiate(loader, MOCK_JAVA_BEAN2, context,
                 appInit);
 
-        assertEquals("as_class",
-                (String) bean.getClass().getMethod("getPropertyOne",
-                        (Class[]) null).invoke(bean, (Object[]) null));
+        assertEquals("as_class", (String) bean.getClass().getMethod(
+                "getPropertyOne", (Class[]) null).invoke(bean, (Object[]) null));
         assertSame(loader, bean.getClass().getClassLoader());
         assertTrue(context.contains(bean));
     }
@@ -216,17 +210,15 @@
         Object bean = Beans.instantiate(loader, MOCK_JAVA_BEAN2, context,
                 appInit);
 
-        assertEquals("as_object",
-                (String) bean.getClass().getMethod("getPropertyOne",
-                        (Class[]) null).invoke(bean, (Object[]) null));
+        assertEquals("as_object", (String) bean.getClass().getMethod(
+                "getPropertyOne", (Class[]) null).invoke(bean, (Object[]) null));
         assertSame(loader, bean.getClass().getClassLoader());
         assertTrue(context.contains(bean));
     }
 
     public void testInstantiateClassLoaderStringBeanContextAppletInitializer_LoaderNull()
             throws Exception {
-        String beanName =
-                "org.apache.harmony.beans.tests.support.mock.MockJavaBean";
+        String beanName = "org.apache.harmony.beans.tests.support.mock.MockJavaBean";
         BeanContext context = new BeanContextSupport();
         AppletInitializer appInit = new MockAppletInitializer();
 
@@ -247,14 +239,14 @@
         try {
             Beans.instantiate(loader, null, context, appInit);
             fail("Should throw NullPointerException.");
-        } catch (NullPointerException e) {}
+        } catch (NullPointerException e) {
+        }
     }
 
     public void testInstantiateClassLoaderStringBeanContextAppletInitializer_ContextNull()
             throws Exception {
         ClassLoader loader = createSpecificClassLoader();
-        String beanName =
-                "org.apache.harmony.beans.tests.support.mock.MockJavaBean";
+        String beanName = "org.apache.harmony.beans.tests.support.mock.MockJavaBean";
         AppletInitializer appInit = new MockAppletInitializer();
         Object bean = Beans.instantiate(loader, beanName, null, appInit);
 
@@ -266,8 +258,7 @@
     public void testInstantiateClassLoaderStringBeanContextAppletInitializer_InitializerNull()
             throws Exception {
         ClassLoader loader = createSpecificClassLoader();
-        String beanName =
-                "org.apache.harmony.beans.tests.support.mock.MockJavaBean";
+        String beanName = "org.apache.harmony.beans.tests.support.mock.MockJavaBean";
         BeanContext context = new BeanContextSupport();
         Object bean = Beans.instantiate(loader, beanName, context, null);
 
@@ -276,45 +267,48 @@
         assertEquals(beanName, bean.getClass().getName());
     }
 
-//    public void testInstantiateClassLoaderStringBeanContextAppletInitializer_AppletBean()
-//            throws IOException, ClassNotFoundException {
-//      String beanName = MockAppletBean.class.getName(); BeanContext context =
-//      new BeanContextSupport(); MockAppletInitializer appInit = new
-//      MockAppletInitializer(); MockAppletBean bean = (MockAppletBean)
-//      Beans.instantiate(null, beanName, context, appInit);
-//      assertSame(ClassLoader.getSystemClassLoader(), bean.getClass()
-//      .getClassLoader()); assertEquals(beanName, bean.getClass().getName());
-//      assertTrue(context.contains(bean));
-//      assertTrue(appInit.activateHasBeenCalled());
-//      assertTrue(appInit.initializeHasBeenCalled());
-//      assertTrue(bean.initHasBeenCalled());
-//    }
-
-//    public void testInstantiateClassLoaderStringBeanContextAppletInitializer_AppletBean_SER()
-//            throws IOException, ClassNotFoundException {
-//    
-//      String beanName = MockAppletBean2.class.getName(); BeanContext context =
-//      new BeanContextSupport(); MockAppletInitializer appInit = new
-//      MockAppletInitializer(); MockAppletBean2 bean = (MockAppletBean2)
-//      Beans.instantiate(null, beanName, context, appInit);
-//      assertSame(ClassLoader.getSystemClassLoader(), bean.getClass()
-//      .getClassLoader()); assertEquals(beanName, bean.getClass().getName());
-//      assertTrue(context.contains(bean));
-//      assertTrue(appInit.activateHasBeenCalled());
-//      assertTrue(appInit.initializeHasBeenCalled());
-//      assertFalse(bean.initHasBeenCalled());
-//     
-//    }
-
-//    public void testInstantiateClassLoaderStringBeanContextAppletInitializer_AppletBean_2()
-//            throws IOException, ClassNotFoundException {
-//    
-//      String beanName = MockAppletBean.class.getName(); BeanContext context =
-//      new BeanContextSupport(); MockAppletInitializer appInit = new
-//      MockAppletInitializer(); MockAppletBean bean = (MockAppletBean)
-//      Beans.instantiate(null, beanName, context, null);
-//     
-//    }
+    // public void
+    // testInstantiateClassLoaderStringBeanContextAppletInitializer_AppletBean()
+    // throws IOException, ClassNotFoundException {
+    // String beanName = MockAppletBean.class.getName(); BeanContext context =
+    // new BeanContextSupport(); MockAppletInitializer appInit = new
+    // MockAppletInitializer(); MockAppletBean bean = (MockAppletBean)
+    // Beans.instantiate(null, beanName, context, appInit);
+    // assertSame(ClassLoader.getSystemClassLoader(), bean.getClass()
+    // .getClassLoader()); assertEquals(beanName, bean.getClass().getName());
+    // assertTrue(context.contains(bean));
+    // assertTrue(appInit.activateHasBeenCalled());
+    // assertTrue(appInit.initializeHasBeenCalled());
+    // assertTrue(bean.initHasBeenCalled());
+    // }
+
+    // public void
+    // testInstantiateClassLoaderStringBeanContextAppletInitializer_AppletBean_SER()
+    // throws IOException, ClassNotFoundException {
+    //    
+    // String beanName = MockAppletBean2.class.getName(); BeanContext context =
+    // new BeanContextSupport(); MockAppletInitializer appInit = new
+    // MockAppletInitializer(); MockAppletBean2 bean = (MockAppletBean2)
+    // Beans.instantiate(null, beanName, context, appInit);
+    // assertSame(ClassLoader.getSystemClassLoader(), bean.getClass()
+    // .getClassLoader()); assertEquals(beanName, bean.getClass().getName());
+    // assertTrue(context.contains(bean));
+    // assertTrue(appInit.activateHasBeenCalled());
+    // assertTrue(appInit.initializeHasBeenCalled());
+    // assertFalse(bean.initHasBeenCalled());
+    //     
+    // }
+
+    // public void
+    // testInstantiateClassLoaderStringBeanContextAppletInitializer_AppletBean_2()
+    // throws IOException, ClassNotFoundException {
+    //    
+    // String beanName = MockAppletBean.class.getName(); BeanContext context =
+    // new BeanContextSupport(); MockAppletInitializer appInit = new
+    // MockAppletInitializer(); MockAppletBean bean = (MockAppletBean)
+    // Beans.instantiate(null, beanName, context, null);
+    //     
+    // }
 
     /*
      * public static boolean isInstanceOf(Object bean, Class targetType)
@@ -329,7 +323,8 @@
         try {
             Beans.isInstanceOf(null, Serializable.class);
             fail("Should throw NullPointerException.");
-        } catch (NullPointerException e) {}
+        } catch (NullPointerException e) {
+        }
     }
 
     public void testIsInstanceOf_TypeNull() {
@@ -402,7 +397,8 @@
         try {
             Class.forName(this.getClass().getName(), true, null);
             fail("This test is designed to run from classpath rather then from bootclasspath");
-        } catch (ClassNotFoundException ok) {}
+        } catch (ClassNotFoundException ok) {
+        }
         assertNotNull(Beans.instantiate(null, this.getClass().getName()));
     }
 
@@ -434,20 +430,24 @@
     }
 
     private ClassLoader createSpecificClassLoader() {
-        return new ClassLoader() {};
+        return new ClassLoader() {
+        };
     }
 
     private class ObjectBean implements Externalizable {
-        
+
         static final long serialVersionUID = 637071583755213744L;
 
-        public void writeExternal(ObjectOutput out) {};
+        public void writeExternal(ObjectOutput out) {
+        };
 
-        public void readExternal(ObjectInput in) {};
+        public void readExternal(ObjectInput in) {
+        };
     }
 
     private class BinClassLoader extends ClassLoader {
 
+        @Override
         protected Class<?> findClass(String name) throws ClassNotFoundException {
             if (!MOCK_JAVA_BEAN2.equals(name)) {
                 return super.findClass(name);
@@ -482,6 +482,7 @@
                 '.', '/')
                 + ".ser";;
 
+        @Override
         protected URL findResource(String name) {
             if (!MOCK_JAVA_BEAN2_SNAME.equals(name)) {
                 return super.findResource(name);

Modified: incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/CustomizedPersistenceDelegateTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/CustomizedPersistenceDelegateTest.java?view=diff&rev=452415&r1=452414&r2=452415
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/CustomizedPersistenceDelegateTest.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/CustomizedPersistenceDelegateTest.java Tue Oct  3 04:05:57 2006
@@ -37,6 +37,7 @@
 
     private MockEncoder enc = null;
 
+    @Override
     protected void setUp() throws Exception {
         super.setUp();
         enc = new MockEncoder();
@@ -74,6 +75,7 @@
                 new MyHandler(1));
         PersistenceDelegate pd = new PersistenceDelegate() {
 
+            @Override
             public Expression instantiate(Object o, Encoder e) {
                 return new Expression(o, ClassLoader.class,
                         "getSystemClassLoader", null);
@@ -166,21 +168,25 @@
 
     static class MockEncoder extends Encoder {
 
+        @Override
         public void writeObject(Object o) {
             // System.out.println("write object: " + o);
             super.writeObject(o);
         }
 
+        @Override
         public PersistenceDelegate getPersistenceDelegate(Class<?> type) {
             // System.out.println("getPersistenceDelegate for " + type);
             return super.getPersistenceDelegate(type);
         }
 
+        @Override
         public void writeExpression(Expression oldExp) {
             // System.out.println("Expression: " + oldExp);
             super.writeExpression(oldExp);
         }
 
+        @Override
         public void writeStatement(Statement oldStat) {
             // System.out.println("Statement: " + oldStat);
             if (oldStat.getMethodName().equals("add")) {
@@ -189,6 +195,7 @@
             super.writeStatement(oldStat);
         }
 
+        @Override
         public Object get(Object o) {
             // StackTraceElement[] stack = new Throwable().getStackTrace();
             // new Throwable().printStackTrace();
@@ -273,6 +280,7 @@
             return new MockBean();
         }
 
+        @Override
         public String toString() {
             return str;
         }



Mime
View raw message