You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by ml...@apache.org on 2006/04/18 14:11:45 UTC

svn commit: r394923 [15/16] - in /incubator/harmony/enhanced/classlib/trunk/modules/beans: make/common/ src/test/java.injected/ src/test/java.injected/java/ src/test/java.injected/java/beans/ src/test/java/tests/ src/test/java/tests/api/ src/test/java/...

Added: incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/FakeFox.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/FakeFox.java?rev=394923&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/FakeFox.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/FakeFox.java Tue Apr 18 05:11:09 2006
@@ -0,0 +1,24 @@
+/* Copyright 2005 The Apache Software Foundation or its licensors, as applicable
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * 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 tests.api.java.beans.mock;
+
+/**
+ * The series of FakeFox classes are used to test
+ * Introspector.getBeanInfo(Class, int)
+ */
+public class FakeFox {
+
+}

Added: incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/FakeFox01.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/FakeFox01.java?rev=394923&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/FakeFox01.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/FakeFox01.java Tue Apr 18 05:11:09 2006
@@ -0,0 +1,32 @@
+/* Copyright 2005 The Apache Software Foundation or its licensors, as applicable
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * 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 tests.api.java.beans.mock;
+
+/**
+ * The series of FakeFox classes are used to test
+ * Introspector.getBeanInfo(Class, int)
+ */
+public class FakeFox01 extends FakeFox {
+	String fox01;
+
+	public String getFox01() {
+		return fox01;
+	}
+
+	public void setFox01(String fox01) {
+		this.fox01 = fox01;
+	}
+}

Added: incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/FakeFox011.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/FakeFox011.java?rev=394923&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/FakeFox011.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/FakeFox011.java Tue Apr 18 05:11:09 2006
@@ -0,0 +1,32 @@
+/* Copyright 2005 The Apache Software Foundation or its licensors, as applicable
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * 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 tests.api.java.beans.mock;
+
+/**
+ * The series of FakeFox classes are used to test
+ * Introspector.getBeanInfo(Class, int)
+ */
+public class FakeFox011 extends FakeFox01 {
+    String fox011;
+
+    public String getFox011() {
+        return fox011;
+    }
+
+    public void setFox011(String fox011) {
+        this.fox011 = fox011;
+    }
+}

Added: incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/FakeFox01BeanInfo.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/FakeFox01BeanInfo.java?rev=394923&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/FakeFox01BeanInfo.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/FakeFox01BeanInfo.java Tue Apr 18 05:11:09 2006
@@ -0,0 +1,89 @@
+/* Copyright 2005 The Apache Software Foundation or its licensors, as applicable
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * 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 tests.api.java.beans.mock;
+
+import java.beans.BeanDescriptor;
+import java.beans.IntrospectionException;
+import java.beans.MethodDescriptor;
+import java.beans.PropertyDescriptor;
+import java.beans.SimpleBeanInfo;
+import java.lang.reflect.Method;
+
+/**
+ * The series of FakeFox classes are used to test
+ * Introspector.getBeanInfo(Class, int)
+ */
+public class FakeFox01BeanInfo extends SimpleBeanInfo {
+
+	Class clazz = FakeFox01.class;
+
+	String suffix = "." + clazz.getName();
+
+	public BeanDescriptor getBeanDescriptor() {
+		BeanDescriptor beanDesc = new BeanDescriptor(clazz);
+		beanDesc.setDisplayName(beanDesc.getDisplayName() + suffix);
+		return beanDesc;
+	}
+
+	public MethodDescriptor[] getMethodDescriptors() {
+		Method get = null;
+		Method set = null;
+		try {
+			get = clazz.getMethod("getFox01", null);
+			set = clazz.getMethod("setFox01", new Class[] { String.class });
+		} catch (SecurityException e) {
+			e.printStackTrace();
+		} catch (NoSuchMethodException e) {
+			e.printStackTrace();
+		}
+
+		MethodDescriptor getDesc = new MethodDescriptor(get);
+		getDesc.setDisplayName(getDesc.getDisplayName() + suffix);
+		MethodDescriptor setDesc = new MethodDescriptor(set);
+		setDesc.setDisplayName(setDesc.getDisplayName() + suffix);
+		return new MethodDescriptor[] { getDesc, setDesc };
+	}
+
+	public PropertyDescriptor[] getPropertyDescriptors() {
+		PropertyDescriptor propertyDesc = null;
+		try {
+			propertyDesc = new PropertyDescriptor("fox01", clazz);
+			propertyDesc.setDisplayName(propertyDesc.getDisplayName() + suffix);
+		} catch (IntrospectionException e) {
+			e.printStackTrace();
+		}
+		return new PropertyDescriptor[] { propertyDesc };
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see java.beans.BeanInfo#getDefaultEventIndex()
+	 */
+	public int getDefaultEventIndex() {
+		return -1;
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see java.beans.BeanInfo#getDefaultPropertyIndex()
+	 */
+	public int getDefaultPropertyIndex() {
+		// TODO Auto-generated method stub
+		return 0;
+	}
+}

Added: incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/FakeFox02.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/FakeFox02.java?rev=394923&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/FakeFox02.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/FakeFox02.java Tue Apr 18 05:11:09 2006
@@ -0,0 +1,39 @@
+/* Copyright 2005 The Apache Software Foundation or its licensors, as applicable
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * 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 tests.api.java.beans.mock;
+
+/**
+ * The series of FakeFox classes are used to test
+ * Introspector.getBeanInfo(Class, int)
+ */
+public class FakeFox02 {
+	String fox02;
+
+	/**
+	 * @return Returns the fox02.
+	 */
+	public String getFox02() {
+		return fox02;
+	}
+
+	/**
+	 * @param fox02
+	 *            The fox02 to set.
+	 */
+	public void setFox02(String fox02) {
+		this.fox02 = fox02;
+	}
+}

Added: incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/FakeFox02BeanInfo.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/FakeFox02BeanInfo.java?rev=394923&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/FakeFox02BeanInfo.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/FakeFox02BeanInfo.java Tue Apr 18 05:11:09 2006
@@ -0,0 +1,46 @@
+/* Copyright 2005 The Apache Software Foundation or its licensors, as applicable
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * 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 tests.api.java.beans.mock;
+
+import java.beans.IntrospectionException;
+import java.beans.PropertyDescriptor;
+import java.beans.SimpleBeanInfo;
+
+/**
+ * The series of FakeFox classes are used to test
+ * Introspector.getBeanInfo(Class, int)
+ */
+public class FakeFox02BeanInfo extends SimpleBeanInfo {
+
+	public FakeFox02BeanInfo() {
+		super();
+	}
+
+	public FakeFox02BeanInfo(String param) {
+		super();
+	}
+
+	public PropertyDescriptor[] getPropertyDescriptors() {
+		PropertyDescriptor pd = null;
+		try {
+			pd = new PropertyDescriptor("fox02", FakeFox02.class);
+			pd.setDisplayName("fox02.beaninfo");
+		} catch (IntrospectionException e) {
+
+		}
+		return new PropertyDescriptor[] { pd };
+	}
+}

Added: incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/Foz.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/Foz.java?rev=394923&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/Foz.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/Foz.java Tue Apr 18 05:11:09 2006
@@ -0,0 +1,55 @@
+/* Copyright 2005 The Apache Software Foundation or its licensors, as applicable
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * 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 tests.api.java.beans.mock;
+
+/**
+ * Test PropertyEditorManager
+ */
+public class Foz {
+	private String name;
+
+	private String text;
+
+	/**
+	 * @return Returns the name.
+	 */
+	public String getName() {
+		return name;
+	}
+
+	/**
+	 * @param name
+	 *            The name to set.
+	 */
+	public void setName(String name) {
+		this.name = name;
+	}
+
+	/**
+	 * @return Returns the text.
+	 */
+	public String getText() {
+		return text;
+	}
+
+	/**
+	 * @param text
+	 *            The text to set.
+	 */
+	public void setText(String text) {
+		this.text = text;
+	}
+}

Added: incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/FozDefault.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/FozDefault.java?rev=394923&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/FozDefault.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/FozDefault.java Tue Apr 18 05:11:09 2006
@@ -0,0 +1,55 @@
+/* Copyright 2005 The Apache Software Foundation or its licensors, as applicable
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * 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 tests.api.java.beans.mock;
+
+/**
+ * Test PropertyEditorManager
+ */
+public class FozDefault {
+	private String name;
+
+	private String text;
+
+	/**
+	 * @return Returns the name.
+	 */
+	public String getName() {
+		return name;
+	}
+
+	/**
+	 * @param name
+	 *            The name to set.
+	 */
+	public void setName(String name) {
+		this.name = name;
+	}
+
+	/**
+	 * @return Returns the text.
+	 */
+	public String getText() {
+		return text;
+	}
+
+	/**
+	 * @param text
+	 *            The text to set.
+	 */
+	public void setText(String text) {
+		this.text = text;
+	}
+}

Added: incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/Fozz.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/Fozz.java?rev=394923&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/Fozz.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/Fozz.java Tue Apr 18 05:11:09 2006
@@ -0,0 +1,55 @@
+/* Copyright 2005 The Apache Software Foundation or its licensors, as applicable
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * 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 tests.api.java.beans.mock;
+
+/**
+ * Test PropertyEditorManager
+ */
+public class Fozz {
+	private String name;
+
+	private String text;
+
+	/**
+	 * @return Returns the name.
+	 */
+	public String getName() {
+		return name;
+	}
+
+	/**
+	 * @param name
+	 *            The name to set.
+	 */
+	public void setName(String name) {
+		this.name = name;
+	}
+
+	/**
+	 * @return Returns the text.
+	 */
+	public String getText() {
+		return text;
+	}
+
+	/**
+	 * @param text
+	 *            The text to set.
+	 */
+	public void setText(String text) {
+		this.text = text;
+	}
+}

Added: incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/FozzEditor.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/FozzEditor.java?rev=394923&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/FozzEditor.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/FozzEditor.java Tue Apr 18 05:11:09 2006
@@ -0,0 +1,150 @@
+/* Copyright 2005 The Apache Software Foundation or its licensors, as applicable
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * 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 tests.api.java.beans.mock;
+
+import java.awt.Component;
+import java.awt.Graphics;
+import java.awt.Rectangle;
+import java.beans.PropertyChangeListener;
+import java.beans.PropertyEditor;
+
+/**
+ * Test PropertyEditorManager
+ */
+public class FozzEditor implements PropertyEditor {
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see java.beans.PropertyEditor#addPropertyChangeListener(java.beans.PropertyChangeListener)
+	 */
+	public void addPropertyChangeListener(PropertyChangeListener listener) {
+		// TO DO Auto-generated method stub
+
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see java.beans.PropertyEditor#getAsText()
+	 */
+	public String getAsText() {
+		// TO DO Auto-generated method stub
+		return null;
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see java.beans.PropertyEditor#getCustomEditor()
+	 */
+	public Component getCustomEditor() {
+		// TO DO Auto-generated method stub
+		return null;
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see java.beans.PropertyEditor#getJavaInitializationString()
+	 */
+	public String getJavaInitializationString() {
+		// TO DO Auto-generated method stub
+		return null;
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see java.beans.PropertyEditor#getTags()
+	 */
+	public String[] getTags() {
+		// TO DO Auto-generated method stub
+		return null;
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see java.beans.PropertyEditor#getValue()
+	 */
+	public Object getValue() {
+		// TO DO Auto-generated method stub
+		return null;
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see java.beans.PropertyEditor#isPaintable()
+	 */
+	public boolean isPaintable() {
+		// TO DO Auto-generated method stub
+		return false;
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see java.beans.PropertyEditor#paintValue(java.awt.Graphics,
+	 *      java.awt.Rectangle)
+	 */
+	public void paintValue(Graphics graphics, Rectangle box) {
+		// TO DO Auto-generated method stub
+
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see java.beans.PropertyEditor#removePropertyChangeListener(java.beans.PropertyChangeListener)
+	 */
+	public void removePropertyChangeListener(PropertyChangeListener listener) {
+		// TO DO Auto-generated method stub
+
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see java.beans.PropertyEditor#setAsText(java.lang.String)
+	 */
+	public void setAsText(String text) throws IllegalArgumentException {
+		// TO DO Auto-generated method stub
+
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see java.beans.PropertyEditor#setValue(java.lang.Object)
+	 */
+	public void setValue(Object value) {
+		// TO DO Auto-generated method stub
+
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see java.beans.PropertyEditor#supportsCustomEditor()
+	 */
+	public boolean supportsCustomEditor() {
+		// TO DO Auto-generated method stub
+		return false;
+	}
+
+}

Added: incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/Fozzz.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/Fozzz.java?rev=394923&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/Fozzz.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/Fozzz.java Tue Apr 18 05:11:09 2006
@@ -0,0 +1,55 @@
+/* Copyright 2005 The Apache Software Foundation or its licensors, as applicable
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * 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 tests.api.java.beans.mock;
+
+/**
+ * Test PropertyEditorManager
+ */
+public class Fozzz {
+	private String name;
+
+	private String text;
+
+	/**
+	 * @return Returns the name.
+	 */
+	public String getName() {
+		return name;
+	}
+
+	/**
+	 * @param name
+	 *            The name to set.
+	 */
+	public void setName(String name) {
+		this.name = name;
+	}
+
+	/**
+	 * @return Returns the text.
+	 */
+	public String getText() {
+		return text;
+	}
+
+	/**
+	 * @param text
+	 *            The text to set.
+	 */
+	public void setText(String text) {
+		this.text = text;
+	}
+}

Added: incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/MockAppletBean.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/MockAppletBean.java?rev=394923&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/MockAppletBean.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/MockAppletBean.java Tue Apr 18 05:11:09 2006
@@ -0,0 +1,55 @@
+/* Copyright 2005 The Apache Software Foundation or its licensors, as applicable
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * 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 tests.api.java.beans.mock;
+
+import java.applet.Applet;
+
+/**
+ * test java.beans.Beans
+ */
+public class MockAppletBean extends Applet {
+	private String propertyOne;
+
+	private boolean initBeenCalled;
+
+	public void init() {
+		super.init();
+		this.initBeenCalled = true;
+	}
+
+	public boolean initHasBeenCalled() {
+		return this.initBeenCalled;
+	}
+
+	public void setInitHasBeenCalled(boolean value) {
+		this.initBeenCalled = value;
+	}
+
+	/**
+	 * @return Returns the propertyOne.
+	 */
+	public String getPropertyOne() {
+		return propertyOne;
+	}
+
+	/**
+	 * @param propertyOne
+	 *            The propertyOne to set.
+	 */
+	public void setPropertyOne(String propertyOne) {
+		this.propertyOne = propertyOne;
+	}
+}

Added: incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/MockAppletBean2.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/MockAppletBean2.java?rev=394923&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/MockAppletBean2.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/MockAppletBean2.java Tue Apr 18 05:11:09 2006
@@ -0,0 +1,58 @@
+/* Copyright 2005 The Apache Software Foundation or its licensors, as applicable
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * 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 tests.api.java.beans.mock;
+
+import java.applet.Applet;
+import java.io.Serializable;
+
+/**
+ * test java.beans.Beans
+ */
+public class MockAppletBean2 extends Applet implements Serializable {
+	static final long serialVersionUID = 1L;
+
+	private String propertyOne;
+
+	private boolean initBeenCalled;
+
+	public void init() {
+		super.init();
+		this.initBeenCalled = true;
+	}
+
+	public boolean initHasBeenCalled() {
+		return this.initBeenCalled;
+	}
+
+	public void setInitHasBeenCalled(boolean value) {
+		this.initBeenCalled = value;
+	}
+
+	/**
+	 * @return Returns the propertyOne.
+	 */
+	public String getPropertyOne() {
+		return propertyOne;
+	}
+
+	/**
+	 * @param propertyOne
+	 *            The propertyOne to set.
+	 */
+	public void setPropertyOne(String propertyOne) {
+		this.propertyOne = propertyOne;
+	}
+}

Added: incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/MockAppletBean2.ser
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/MockAppletBean2.ser?rev=394923&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/MockAppletBean2.ser
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/MockAppletInitializer.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/MockAppletInitializer.java?rev=394923&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/MockAppletInitializer.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/MockAppletInitializer.java Tue Apr 18 05:11:09 2006
@@ -0,0 +1,47 @@
+/* Copyright 2005 The Apache Software Foundation or its licensors, as applicable
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * 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 tests.api.java.beans.mock;
+
+import java.applet.Applet;
+import java.beans.AppletInitializer;
+import java.beans.beancontext.BeanContext;
+
+/**
+ * test java.beans.Beans
+ */
+public class MockAppletInitializer implements AppletInitializer {
+
+	private boolean activateBeenCalled;
+
+	private boolean initializeBeenCalled;
+
+	public boolean activateHasBeenCalled() {
+		return this.activateBeenCalled;
+	}
+
+	public boolean initializeHasBeenCalled() {
+		return this.initializeBeenCalled;
+	}
+
+	public void activate(Applet newApplet) {
+		this.activateBeenCalled = true;
+	}
+
+	public void initialize(Applet appletBean, BeanContext context) {
+		this.initializeBeenCalled = true;
+	}
+
+}

Added: incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/MockBean4Codec.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/MockBean4Codec.java?rev=394923&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/MockBean4Codec.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/MockBean4Codec.java Tue Apr 18 05:11:09 2006
@@ -0,0 +1,128 @@
+/* Copyright 2005 The Apache Software Foundation or its licensors, as applicable
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * 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 tests.api.java.beans.mock;
+
+public class MockBean4Codec extends MockBean4CodecPrimitives {
+
+	public static MockBean4Codec getInstanceOfManyChanges() {
+		MockBean4Codec bean = new MockBean4Codec();
+		bean.setB((byte) 127);
+		bean.setBackRef(bean);
+		bean.setBobj(new Byte((byte) 127));
+		bean.setBool(false);
+		bean.setBoolobj(Boolean.TRUE);
+		bean.getBornFriend().setClazz(Exception.class);
+		bean.getBornFriend().getZarr()[0] = 888;
+		bean.setC('Z');
+		bean.setClazz(String.class);
+		bean.setCobj(new Character('z'));
+		bean.setD(123.456);
+		bean.setDobj(new Double(123.456));
+		bean.setF(12.34F);
+		bean.setFobj(new Float(12.34F));
+		bean.setFriend(new MockBean4Codec());
+		bean.getFriend().setClazz(MockBean4Codec.class);
+		bean.setI(999);
+		bean.setIobj(new Integer(999));
+		bean.setL(8888888);
+		bean.setLobj(new Long(8888888));
+		bean.setName("Li Yang");
+		bean.setNill(null);
+		bean.setS((short) 55);
+		bean.setSobj(new Short((short) 55));
+		bean.setZarr(new int[] { 3, 2, 1 });
+		bean.setZarrarr(new String[][] { { "6", "6", "6" } });
+		return bean;
+	}
+
+	public static MockBean4Codec getInstanceOfManyChanges2() {
+		MockBean4Codec bean = new MockBean4Codec();
+		bean.getBornFriend().setClazz(Exception.class);
+		return bean;
+	}
+
+	String name;
+
+	MockBean4Codec friend;
+
+	MockBean4CodecPrimitives bornFriend = new MockBean4CodecPrimitives();
+
+	MockBean4Codec backRef;
+
+	public MockBean4Codec() {
+		super();
+	}
+
+	/**
+	 * @return Returns the friend.
+	 */
+	public MockBean4Codec getFriend() {
+		return friend;
+	}
+
+	/**
+	 * @param friend
+	 *            The friend to set.
+	 */
+	public void setFriend(MockBean4Codec friend) {
+		this.friend = friend;
+	}
+
+	/**
+	 * @return Returns the name.
+	 */
+	public String getName() {
+		return name;
+	}
+
+	/**
+	 * @param name
+	 *            The name to set.
+	 */
+	public void setName(String name) {
+		this.name = name;
+	}
+
+	/**
+	 * @return Returns the backRef.
+	 */
+	public MockBean4Codec getBackRef() {
+		return backRef;
+	}
+
+	/**
+	 * @param backRef
+	 *            The backRef to set.
+	 */
+	public void setBackRef(MockBean4Codec backRef) {
+		this.backRef = backRef;
+	}
+
+	/**
+	 * @return Returns the bornFriend.
+	 */
+	public MockBean4CodecPrimitives getBornFriend() {
+		return bornFriend;
+	}
+
+	/**
+	 * @param bornFriend
+	 *            The bornFriend to set.
+	 */
+	public void setBornFriend(MockBean4CodecPrimitives bornFriend) {
+		this.bornFriend = bornFriend;
+	}
+}

Added: incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/MockBean4CodecAdv.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/MockBean4CodecAdv.java?rev=394923&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/MockBean4CodecAdv.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/MockBean4CodecAdv.java Tue Apr 18 05:11:09 2006
@@ -0,0 +1,160 @@
+/* Copyright 2005 The Apache Software Foundation or its licensors, as applicable
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * 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 tests.api.java.beans.mock;
+
+import java.util.ArrayList;
+import java.util.Calendar;
+import java.util.Currency;
+import java.util.Date;
+import java.util.Locale;
+import java.util.Properties;
+import java.util.TimeZone;
+
+public class MockBean4CodecAdv extends MockBean4Codec {
+
+	String id;
+
+	ArrayList arraylist = new ArrayList();
+
+	Calendar calendar = Calendar.getInstance();
+
+	Currency currency = Currency.getInstance(Locale.US);
+
+	Date date = new Date();
+
+	Locale locale = Locale.US;
+
+	Properties properties = new Properties();
+
+	TimeZone timezone = TimeZone.getTimeZone("GMT+8");
+
+	/**
+	 * 
+	 */
+	public MockBean4CodecAdv(String id) {
+		super();
+		this.id = id;
+	}
+
+	public String getId() {
+		return id;
+	}
+
+	/**
+	 * @return Returns the arraylist.
+	 */
+	public ArrayList getArraylist() {
+		return arraylist;
+	}
+
+	/**
+	 * @param arraylist
+	 *            The arraylist to set.
+	 */
+	public void setArraylist(ArrayList arraylist) {
+		this.arraylist = arraylist;
+	}
+
+	/**
+	 * @return Returns the calendar.
+	 */
+	public Calendar getCalendar() {
+		return calendar;
+	}
+
+	/**
+	 * @param calendar
+	 *            The calendar to set.
+	 */
+	public void setCalendar(Calendar calendar) {
+		this.calendar = calendar;
+	}
+
+	/**
+	 * @return Returns the currency.
+	 */
+	public Currency getCurrency() {
+		return currency;
+	}
+
+	/**
+	 * @param currency
+	 *            The currency to set.
+	 */
+	public void setCurrency(Currency currency) {
+		this.currency = currency;
+	}
+
+	/**
+	 * @return Returns the date.
+	 */
+	public Date getDate() {
+		return date;
+	}
+
+	/**
+	 * @param date
+	 *            The date to set.
+	 */
+	public void setDate(Date date) {
+		this.date = date;
+	}
+
+	/**
+	 * @return Returns the locale.
+	 */
+	public Locale getLocale() {
+		return locale;
+	}
+
+	/**
+	 * @param locale
+	 *            The locale to set.
+	 */
+	public void setLocale(Locale locale) {
+		this.locale = locale;
+	}
+
+	/**
+	 * @return Returns the properties.
+	 */
+	public Properties getProperties() {
+		return properties;
+	}
+
+	/**
+	 * @param properties
+	 *            The properties to set.
+	 */
+	public void setProperties(Properties properties) {
+		this.properties = properties;
+	}
+
+	/**
+	 * @return Returns the timezone.
+	 */
+	public TimeZone getTimezone() {
+		return timezone;
+	}
+
+	/**
+	 * @param timezone
+	 *            The timezone to set.
+	 */
+	public void setTimezone(TimeZone timezone) {
+		this.timezone = timezone;
+	}
+}

Added: incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/MockBean4CodecBadGetter.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/MockBean4CodecBadGetter.java?rev=394923&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/MockBean4CodecBadGetter.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/MockBean4CodecBadGetter.java Tue Apr 18 05:11:09 2006
@@ -0,0 +1,27 @@
+/* Copyright 2005 The Apache Software Foundation or its licensors, as applicable
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * 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 tests.api.java.beans.mock;
+
+public class MockBean4CodecBadGetter extends MockBean4Codec {
+
+	public MockBean4CodecBadGetter() {
+		super();
+	}
+
+	public String getName() {
+		throw new UnsupportedOperationException();
+	}
+}

Added: incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/MockBean4CodecBadSetter.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/MockBean4CodecBadSetter.java?rev=394923&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/MockBean4CodecBadSetter.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/MockBean4CodecBadSetter.java Tue Apr 18 05:11:09 2006
@@ -0,0 +1,27 @@
+/* Copyright 2005 The Apache Software Foundation or its licensors, as applicable
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * 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 tests.api.java.beans.mock;
+
+public class MockBean4CodecBadSetter extends MockBean4Codec {
+
+	public MockBean4CodecBadSetter() {
+		super();
+	}
+
+	public void setName(String name) {
+		throw new UnsupportedOperationException();
+	}
+}

Added: incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/MockBean4CodecPrimitives.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/MockBean4CodecPrimitives.java?rev=394923&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/MockBean4CodecPrimitives.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/MockBean4CodecPrimitives.java Tue Apr 18 05:11:09 2006
@@ -0,0 +1,401 @@
+/* Copyright 2005 The Apache Software Foundation or its licensors, as applicable
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * 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 tests.api.java.beans.mock;
+
+import java.lang.reflect.Field;
+import java.util.Collection;
+
+public class MockBean4CodecPrimitives {
+
+	boolean bool = true;
+
+	byte b = 1;
+
+	char c = 'a';
+
+	double d = 3.14;
+
+	float f = 3.14F;
+
+	int i = 4;
+
+	long l = 8;
+
+	short s = 2;
+
+	Boolean boolobj = Boolean.FALSE;
+
+	Byte bobj = new Byte((byte) 11);
+
+	Character cobj = new Character('A');
+
+	Double dobj = new Double(6.28);
+
+	Float fobj = new Float(6.28F);
+
+	Integer iobj = new Integer(44);
+
+	Long lobj = new Long(88);
+
+	Short sobj = new Short((short) 22);
+
+	Object nill = "start with not null";
+
+	Class clazz = Collection.class;
+
+	int zarr[] = { 1, 2, 3, 4 };
+
+	String zarrarr[][] = { { "1", "2" }, { "3", "4", "5" } };
+
+	public MockBean4CodecPrimitives() {
+		super();
+	}
+
+	public boolean equals(Object obj) {
+		if (obj == null || !getClass().equals(obj.getClass())) {
+			return false;
+		}
+		try {
+			Field fields[] = getClass().getDeclaredFields();
+			for (int i = 0; i < fields.length; i++) {
+				Object mine = fields[i].get(this);
+				Object other = fields[i].get(obj);
+				if (mine == null ? other != null : !mine.equals(other)) {
+					return false;
+				}
+			}
+			return true;
+		} catch (Exception e) {
+			throw new RuntimeException("impossible!!");
+		}
+	}
+
+	public int hashCode() {
+		try {
+			int code = 0;
+			Field fields[] = getClass().getDeclaredFields();
+			for (int i = 0; i < fields.length; i++) {
+				Object mine = fields[i].get(this);
+				if (mine != null) {
+					code += mine.hashCode();
+				}
+			}
+			return code;
+		} catch (Exception e) {
+			throw new RuntimeException("impossible!!");
+		}
+	}
+
+	/**
+	 * @return Returns the b.
+	 */
+	public byte getB() {
+		return b;
+	}
+
+	/**
+	 * @param b
+	 *            The b to set.
+	 */
+	public void setB(byte b) {
+		this.b = b;
+	}
+
+	/**
+	 * @return Returns the bobj.
+	 */
+	public Byte getBobj() {
+		return bobj;
+	}
+
+	/**
+	 * @param bobj
+	 *            The bobj to set.
+	 */
+	public void setBobj(Byte bobj) {
+		this.bobj = bobj;
+	}
+
+	/**
+	 * @return Returns the bool.
+	 */
+	public boolean isBool() {
+		return bool;
+	}
+
+	/**
+	 * @param bool
+	 *            The bool to set.
+	 */
+	public void setBool(boolean bool) {
+		this.bool = bool;
+	}
+
+	/**
+	 * @return Returns the boolobj.
+	 */
+	public Boolean getBoolobj() {
+		return boolobj;
+	}
+
+	/**
+	 * @param boolobj
+	 *            The boolobj to set.
+	 */
+	public void setBoolobj(Boolean boolobj) {
+		this.boolobj = boolobj;
+	}
+
+	/**
+	 * @return Returns the c.
+	 */
+	public char getC() {
+		return c;
+	}
+
+	/**
+	 * @param c
+	 *            The c to set.
+	 */
+	public void setC(char c) {
+		this.c = c;
+	}
+
+	/**
+	 * @return Returns the cobj.
+	 */
+	public Character getCobj() {
+		return cobj;
+	}
+
+	/**
+	 * @param cobj
+	 *            The cobj to set.
+	 */
+	public void setCobj(Character cobj) {
+		this.cobj = cobj;
+	}
+
+	/**
+	 * @return Returns the d.
+	 */
+	public double getD() {
+		return d;
+	}
+
+	/**
+	 * @param d
+	 *            The d to set.
+	 */
+	public void setD(double d) {
+		this.d = d;
+	}
+
+	/**
+	 * @return Returns the dobj.
+	 */
+	public Double getDobj() {
+		return dobj;
+	}
+
+	/**
+	 * @param dobj
+	 *            The dobj to set.
+	 */
+	public void setDobj(Double dobj) {
+		this.dobj = dobj;
+	}
+
+	/**
+	 * @return Returns the f.
+	 */
+	public float getF() {
+		return f;
+	}
+
+	/**
+	 * @param f
+	 *            The f to set.
+	 */
+	public void setF(float f) {
+		this.f = f;
+	}
+
+	/**
+	 * @return Returns the fobj.
+	 */
+	public Float getFobj() {
+		return fobj;
+	}
+
+	/**
+	 * @param fobj
+	 *            The fobj to set.
+	 */
+	public void setFobj(Float fobj) {
+		this.fobj = fobj;
+	}
+
+	/**
+	 * @return Returns the i.
+	 */
+	public int getI() {
+		return i;
+	}
+
+	/**
+	 * @param i
+	 *            The i to set.
+	 */
+	public void setI(int i) {
+		this.i = i;
+	}
+
+	/**
+	 * @return Returns the iobj.
+	 */
+	public Integer getIobj() {
+		return iobj;
+	}
+
+	/**
+	 * @param iobj
+	 *            The iobj to set.
+	 */
+	public void setIobj(Integer iobj) {
+		this.iobj = iobj;
+	}
+
+	/**
+	 * @return Returns the l.
+	 */
+	public long getL() {
+		return l;
+	}
+
+	/**
+	 * @param l
+	 *            The l to set.
+	 */
+	public void setL(long l) {
+		this.l = l;
+	}
+
+	/**
+	 * @return Returns the lobj.
+	 */
+	public Long getLobj() {
+		return lobj;
+	}
+
+	/**
+	 * @param lobj
+	 *            The lobj to set.
+	 */
+	public void setLobj(Long lobj) {
+		this.lobj = lobj;
+	}
+
+	/**
+	 * @return Returns the nill.
+	 */
+	public Object getNill() {
+		return nill;
+	}
+
+	/**
+	 * @param nill
+	 *            The nill to set.
+	 */
+	public void setNill(Object nill) {
+		this.nill = nill;
+	}
+
+	/**
+	 * @return Returns the s.
+	 */
+	public short getS() {
+		return s;
+	}
+
+	/**
+	 * @param s
+	 *            The s to set.
+	 */
+	public void setS(short s) {
+		this.s = s;
+	}
+
+	/**
+	 * @return Returns the sobj.
+	 */
+	public Short getSobj() {
+		return sobj;
+	}
+
+	/**
+	 * @param sobj
+	 *            The sobj to set.
+	 */
+	public void setSobj(Short sobj) {
+		this.sobj = sobj;
+	}
+
+	/**
+	 * @return Returns the clazz.
+	 */
+	public Class getClazz() {
+		return clazz;
+	}
+
+	/**
+	 * @param clazz
+	 *            The clazz to set.
+	 */
+	public void setClazz(Class clazz) {
+		this.clazz = clazz;
+	}
+
+	/**
+	 * @return Returns the zarr.
+	 */
+	public int[] getZarr() {
+		return zarr;
+	}
+
+	/**
+	 * @param arr
+	 *            The zarr to set.
+	 */
+	public void setZarr(int[] arr) {
+		this.zarr = arr;
+	}
+
+	/**
+	 * @return Returns the zarrarr.
+	 */
+	public String[][] getZarrarr() {
+		return zarrarr;
+	}
+
+	/**
+	 * @param arrarr
+	 *            The zarrarr to set.
+	 */
+	public void setZarrarr(String[][] arrarr) {
+		this.zarrarr = arrarr;
+	}
+}

Added: incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/MockBeanListener2.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/MockBeanListener2.java?rev=394923&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/MockBeanListener2.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/MockBeanListener2.java Tue Apr 18 05:11:09 2006
@@ -0,0 +1,31 @@
+/* Copyright 2005 The Apache Software Foundation or its licensors, as applicable
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * 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 tests.api.java.beans.mock;
+
+/**
+ * test java.beans
+ */
+public class MockBeanListener2 implements MockPropertyChangeListener2 {
+
+	public void mockPropertyChange(
+			tests.api.java.beans.mock.MockPropertyChangeEvent e) {
+	}
+
+	public void mockPropertyChange(
+			tests.api.java.beans.MockPropertyChangeEvent e) {
+	}
+
+}

Added: incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/MockButton.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/MockButton.java?rev=394923&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/MockButton.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/MockButton.java Tue Apr 18 05:11:09 2006
@@ -0,0 +1,75 @@
+/* Copyright 2005 The Apache Software Foundation or its licensors, as applicable
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * 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 tests.api.java.beans.mock;
+
+import java.beans.PropertyChangeListener;
+import java.beans.PropertyChangeSupport;
+import java.io.Serializable;
+
+/**
+ * This is a mock bean for EventHandler test.
+ */
+public class MockButton implements Serializable {
+	String name;
+
+	String label;
+
+	PropertyChangeSupport support;
+
+	static public String defaultName = "MockButton 1";
+
+	public MockButton() {
+		this.name = defaultName;
+		this.label = this.name;
+		this.support = new PropertyChangeSupport(this);
+	}
+
+	public void addPropertyChangeListener(PropertyChangeListener listener) {
+		this.support.addPropertyChangeListener(listener);
+	}
+
+	/**
+	 * @return Returns the label.
+	 */
+	public String getLabel() {
+		return label;
+	}
+
+	/**
+	 * @param label
+	 *            The label to set.
+	 */
+	public void setLabel(String label) {
+		this.support.firePropertyChange("label", this.label, label);
+		this.label = label;
+	}
+
+	/**
+	 * @return Returns the name.
+	 */
+	public String getName() {
+		return name;
+	}
+
+	/**
+	 * @param name
+	 *            The name to set.
+	 */
+	public void setName(String name) {
+		this.name = name;
+	}
+
+}

Added: incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/MockExceptionListener.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/MockExceptionListener.java?rev=394923&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/MockExceptionListener.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/MockExceptionListener.java Tue Apr 18 05:11:09 2006
@@ -0,0 +1,241 @@
+/* Copyright 2005 The Apache Software Foundation or its licensors, as applicable
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * 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 tests.api.java.beans.mock;
+
+import java.beans.ExceptionListener;
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.Iterator;
+import java.util.List;
+import java.util.ListIterator;
+
+/**
+ * Mock of ExceptionListener
+ */
+public class MockExceptionListener implements ExceptionListener {
+
+	public ArrayList exHistory = new ArrayList();
+
+	public void exceptionThrown(Exception ex) {
+		exHistory.add(ex);
+	}
+
+	/**
+	 * @param arg0
+	 * @param arg1
+	 */
+	public void add(int arg0, Object arg1) {
+		exHistory.add(arg0, arg1);
+	}
+
+	/**
+	 * @param arg0
+	 * @return
+	 */
+	public boolean add(Object arg0) {
+		return exHistory.add(arg0);
+	}
+
+	/**
+	 * @param arg0
+	 * @param arg1
+	 * @return
+	 */
+	public boolean addAll(int arg0, Collection arg1) {
+		return exHistory.addAll(arg0, arg1);
+	}
+
+	/**
+	 * @param arg0
+	 * @return
+	 */
+	public boolean addAll(Collection arg0) {
+		return exHistory.addAll(arg0);
+	}
+
+	/**
+	 * 
+	 */
+	public void clear() {
+		exHistory.clear();
+	}
+
+	/**
+	 * @param arg0
+	 * @return
+	 */
+	public boolean contains(Object arg0) {
+		return exHistory.contains(arg0);
+	}
+
+	/**
+	 * @param arg0
+	 * @return
+	 */
+	public boolean containsAll(Collection arg0) {
+		return exHistory.containsAll(arg0);
+	}
+
+	/**
+	 * @param arg0
+	 */
+	public void ensureCapacity(int arg0) {
+		exHistory.ensureCapacity(arg0);
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see java.lang.Object#equals(java.lang.Object)
+	 */
+	public boolean equals(Object arg0) {
+		return exHistory.equals(arg0);
+	}
+
+	/**
+	 * @param arg0
+	 * @return
+	 */
+	public Object get(int arg0) {
+		return exHistory.get(arg0);
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see java.lang.Object#hashCode()
+	 */
+	public int hashCode() {
+		return exHistory.hashCode();
+	}
+
+	/**
+	 * @param arg0
+	 * @return
+	 */
+	public int indexOf(Object arg0) {
+		return exHistory.indexOf(arg0);
+	}
+
+	/**
+	 * @return
+	 */
+	public boolean isEmpty() {
+		return exHistory.isEmpty();
+	}
+
+	/**
+	 * @return
+	 */
+	public Iterator iterator() {
+		return exHistory.iterator();
+	}
+
+	/**
+	 * @param arg0
+	 * @return
+	 */
+	public int lastIndexOf(Object arg0) {
+		return exHistory.lastIndexOf(arg0);
+	}
+
+	/**
+	 * @return
+	 */
+	public ListIterator listIterator() {
+		return exHistory.listIterator();
+	}
+
+	/**
+	 * @param arg0
+	 * @return
+	 */
+	public ListIterator listIterator(int arg0) {
+		return exHistory.listIterator(arg0);
+	}
+
+	/**
+	 * @param arg0
+	 * @return
+	 */
+	public Object remove(int arg0) {
+		return exHistory.remove(arg0);
+	}
+
+	/**
+	 * @param arg0
+	 * @return
+	 */
+	public boolean remove(Object arg0) {
+		return exHistory.remove(arg0);
+	}
+
+	/**
+	 * @param arg0
+	 * @return
+	 */
+	public boolean removeAll(Collection arg0) {
+		return exHistory.removeAll(arg0);
+	}
+
+	/**
+	 * @param arg0
+	 * @return
+	 */
+	public boolean retainAll(Collection arg0) {
+		return exHistory.retainAll(arg0);
+	}
+
+	/**
+	 * @param arg0
+	 * @param arg1
+	 * @return
+	 */
+	public Object set(int arg0, Object arg1) {
+		return exHistory.set(arg0, arg1);
+	}
+
+	/**
+	 * @return
+	 */
+	public int size() {
+		return exHistory.size();
+	}
+
+	/**
+	 * @param arg0
+	 * @param arg1
+	 * @return
+	 */
+	public List subList(int arg0, int arg1) {
+		return exHistory.subList(arg0, arg1);
+	}
+
+	/**
+	 * @return
+	 */
+	public Object[] toArray() {
+		return exHistory.toArray();
+	}
+
+	/**
+	 * @param arg0
+	 * @return
+	 */
+	public Object[] toArray(Object[] arg0) {
+		return exHistory.toArray(arg0);
+	}
+}

Added: incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/MockFakeListener.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/MockFakeListener.java?rev=394923&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/MockFakeListener.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/MockFakeListener.java Tue Apr 18 05:11:09 2006
@@ -0,0 +1,23 @@
+/* Copyright 2005 The Apache Software Foundation or its licensors, as applicable
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * 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 tests.api.java.beans.mock;
+
+/**
+ * test java.beans
+ */
+public interface MockFakeListener {
+	public void mockPropertyChange(MockPropertyChangeEvent e);
+}

Added: incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/MockFoo.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/MockFoo.java?rev=394923&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/MockFoo.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/MockFoo.java Tue Apr 18 05:11:09 2006
@@ -0,0 +1,46 @@
+/* Copyright 2005 The Apache Software Foundation or its licensors, as applicable
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * 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 tests.api.java.beans.mock;
+
+import java.io.Serializable;
+
+/**
+ * This class is used for Introspector test.
+ */
+public class MockFoo extends MockFooStop implements Serializable {
+
+	/**
+	 * Comment for <code>serialVersionUID</code>
+	 */
+	private static final long serialVersionUID = 1L;
+
+	private String name;
+
+	/**
+	 * @return Returns the name.
+	 */
+	public String getName() {
+		return name;
+	}
+
+	/**
+	 * @param name
+	 *            The name to set.
+	 */
+	public void setName(String name) {
+		this.name = name;
+	}
+}

Added: incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/MockFoo2.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/MockFoo2.java?rev=394923&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/MockFoo2.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/MockFoo2.java Tue Apr 18 05:11:09 2006
@@ -0,0 +1,38 @@
+/* Copyright 2005 The Apache Software Foundation or its licensors, as applicable
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * 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 tests.api.java.beans.mock;
+
+/**
+ * A bean that has get/set method different from getXXX and setXXX.
+ */
+public class MockFoo2 extends MockFoo2Parent {
+	private int prop1;
+
+	public MockFoo2() {
+	}
+
+	public MockFoo2(int prop) {
+		this.prop1 = prop;
+	}
+
+	public int myget() {
+		return this.prop1;
+	}
+
+	public void myset(int prop) {
+		this.prop1 = prop;
+	}
+}

Added: incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/MockFoo2BeanInfo.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/MockFoo2BeanInfo.java?rev=394923&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/MockFoo2BeanInfo.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/MockFoo2BeanInfo.java Tue Apr 18 05:11:09 2006
@@ -0,0 +1,40 @@
+/* Copyright 2005 The Apache Software Foundation or its licensors, as applicable
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * 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 tests.api.java.beans.mock;
+
+import java.beans.IntrospectionException;
+import java.beans.PropertyDescriptor;
+import java.beans.SimpleBeanInfo;
+
+/**
+ * Testcases for persistence delegate classes.
+ */
+public class MockFoo2BeanInfo extends SimpleBeanInfo {
+
+	public PropertyDescriptor[] getPropertyDescriptors() {
+		PropertyDescriptor[] pds = new PropertyDescriptor[1];
+		try {
+			PropertyDescriptor pd = new PropertyDescriptor("prop",
+					MockFoo2.class, "myget", "myset");
+			pd.setName(pd.getName() + ".BeanInfo");
+			pds[0] = pd;
+		} catch (IntrospectionException e) {
+			throw new Error(e);
+		}
+		return pds;
+	}
+
+}

Added: incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/MockFoo2Parent.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/MockFoo2Parent.java?rev=394923&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/MockFoo2Parent.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/MockFoo2Parent.java Tue Apr 18 05:11:09 2006
@@ -0,0 +1,32 @@
+/* Copyright 2005 The Apache Software Foundation or its licensors, as applicable
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * 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 tests.api.java.beans.mock;
+
+/**
+ * test for DefaultPersistenceDelegate
+ */
+public class MockFoo2Parent {
+	private int i = 0;
+
+	public void set(int i) {
+		this.i = i;
+	}
+
+	public int get() {
+		return this.i;
+	}
+
+}

Added: incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/MockFoo2ParentBeanInfo.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/MockFoo2ParentBeanInfo.java?rev=394923&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/MockFoo2ParentBeanInfo.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/MockFoo2ParentBeanInfo.java Tue Apr 18 05:11:09 2006
@@ -0,0 +1,37 @@
+/* Copyright 2005 The Apache Software Foundation or its licensors, as applicable
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * 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 tests.api.java.beans.mock;
+
+import java.beans.IntrospectionException;
+import java.beans.PropertyDescriptor;
+
+/**
+ * test for DefaultPersistenceDelegate
+ */
+public class MockFoo2ParentBeanInfo {
+	public PropertyDescriptor[] getPropertyDescriptors() {
+		PropertyDescriptor[] pds = new PropertyDescriptor[1];
+		try {
+			PropertyDescriptor pd = new PropertyDescriptor("prop",
+					MockFoo2.class, "get", "set");
+			pd.setName(pd.getName() + ".BeanInfo");
+			pds[0] = pd;
+		} catch (IntrospectionException e) {
+			throw new Error(e);
+		}
+		return pds;
+	}
+}

Added: incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/MockFooBeanInfo.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/MockFooBeanInfo.java?rev=394923&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/MockFooBeanInfo.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/MockFooBeanInfo.java Tue Apr 18 05:11:09 2006
@@ -0,0 +1,38 @@
+/* Copyright 2005 The Apache Software Foundation or its licensors, as applicable
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * 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 tests.api.java.beans.mock;
+
+import java.beans.BeanDescriptor;
+import java.beans.SimpleBeanInfo;
+
+import tests.api.java.beans.EncoderTest;
+
+/**
+ * test for DefaultPersistenceDelegate
+ */
+public class MockFooBeanInfo extends SimpleBeanInfo {
+	private Class clazz = MockFoo.class;
+
+	private String suffix = ".BeanInfo";
+
+	public BeanDescriptor getBeanDescriptor() {
+		BeanDescriptor beanDesc = new BeanDescriptor(clazz);
+		beanDesc.setName(beanDesc.getName() + suffix);
+		// beanDesc.setValue("persistenceDelegate", new
+		// EncoderTest.VerbosePD());
+		return beanDesc;
+	}
+}

Added: incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/MockFooButton.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/MockFooButton.java?rev=394923&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/MockFooButton.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/MockFooButton.java Tue Apr 18 05:11:09 2006
@@ -0,0 +1,40 @@
+/* Copyright 2005 The Apache Software Foundation or its licensors, as applicable
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * 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 tests.api.java.beans.mock;
+
+import java.io.Serializable;
+
+/**
+ * Test the default bean info search path.
+ */
+public class MockFooButton implements Serializable {
+	private String text;
+
+	/**
+	 * @return Returns the text.
+	 */
+	public String getText() {
+		return text;
+	}
+
+	/**
+	 * @param text
+	 *            The text to set.
+	 */
+	public void setText(String text) {
+		this.text = text;
+	}
+}

Added: incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/MockFooChild.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/MockFooChild.java?rev=394923&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/MockFooChild.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/MockFooChild.java Tue Apr 18 05:11:09 2006
@@ -0,0 +1,50 @@
+/* Copyright 2005 The Apache Software Foundation or its licensors, as applicable
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * 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 tests.api.java.beans.mock;
+
+import tests.api.java.beans.MockPropertyChangeListener;
+
+/**
+ * test Introspector
+ */
+public class MockFooChild extends MockFoo {
+	private String childName;
+
+	/**
+	 * @return Returns the childName.
+	 */
+	public String getChildName() {
+		return childName;
+	}
+
+	/**
+	 * @param childName
+	 *            The childName to set.
+	 */
+	public void setChildName(String childName) {
+		this.childName = childName;
+	}
+
+	public void addMockPropertyChangeListener(
+			MockPropertyChangeListener listener) {
+
+	}
+
+	public void removeMockPropertyChangeListener(
+			MockPropertyChangeListener listener) {
+
+	}
+}

Added: incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/MockFooChildBeanInfo.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/MockFooChildBeanInfo.java?rev=394923&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/MockFooChildBeanInfo.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/MockFooChildBeanInfo.java Tue Apr 18 05:11:09 2006
@@ -0,0 +1,81 @@
+/* Copyright 2005 The Apache Software Foundation or its licensors, as applicable
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * 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 tests.api.java.beans.mock;
+
+import java.beans.EventSetDescriptor;
+import java.beans.IntrospectionException;
+import java.beans.MethodDescriptor;
+import java.beans.PropertyDescriptor;
+import java.beans.SimpleBeanInfo;
+import java.lang.reflect.Method;
+
+import tests.api.java.beans.MockPropertyChangeListener;
+
+/**
+ * test Introspector
+ */
+public class MockFooChildBeanInfo extends SimpleBeanInfo {
+
+	Class clazz = MockFooChild.class;
+
+	String suffix = ".MockFooChildBeanInfo";
+
+	public PropertyDescriptor[] getPropertyDescriptors() {
+		PropertyDescriptor[] pds = new PropertyDescriptor[1];
+		try {
+			PropertyDescriptor pd = new PropertyDescriptor("childName", clazz);
+			pd.setName(pd.getName() + suffix);
+			pds[0] = pd;
+		} catch (IntrospectionException e) {
+			e.printStackTrace();
+		}
+		return pds;
+	}
+
+	public MethodDescriptor[] getMethodDescriptors() {
+		MethodDescriptor[] mds = new MethodDescriptor[2];
+		try {
+			Method getMethod = clazz.getMethod("getChildName", null);
+			Method setMethod = clazz.getMethod("setChildName",
+					new Class[] { String.class });
+			mds[0] = new MethodDescriptor(getMethod);
+			mds[0].setName(mds[0].getName() + suffix);
+
+			mds[1] = new MethodDescriptor(setMethod);
+			mds[1].setName(mds[1].getName() + suffix);
+
+		} catch (SecurityException e) {
+			e.printStackTrace();
+		} catch (NoSuchMethodException e) {
+			e.printStackTrace();
+		}
+		return mds;
+	}
+
+	public EventSetDescriptor[] getEventSetDescriptors() {
+		EventSetDescriptor[] esds = new EventSetDescriptor[1];
+		try {
+			EventSetDescriptor esd = new EventSetDescriptor(clazz,
+					"mockPropertyChange", MockPropertyChangeListener.class,
+					"mockPropertyChange");
+			esd.setName(esd.getName() + suffix);
+			esds[0] = esd;
+		} catch (IntrospectionException e) {
+			e.printStackTrace();
+		}
+		return esds;
+	}
+}

Added: incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/MockFooLabel.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/MockFooLabel.java?rev=394923&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/MockFooLabel.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/MockFooLabel.java Tue Apr 18 05:11:09 2006
@@ -0,0 +1,40 @@
+/* Copyright 2005 The Apache Software Foundation or its licensors, as applicable
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * 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 tests.api.java.beans.mock;
+
+import java.io.Serializable;
+
+/**
+ * Test the default bean info search path.
+ */
+public class MockFooLabel implements Serializable {
+	private String text;
+
+	/**
+	 * @return Returns the text.
+	 */
+	public String getText() {
+		return text;
+	}
+
+	/**
+	 * @param text
+	 *            The text to set.
+	 */
+	public void setText(String text) {
+		this.text = text;
+	}
+}

Added: incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/MockFooLiYang.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/MockFooLiYang.java?rev=394923&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/MockFooLiYang.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/MockFooLiYang.java Tue Apr 18 05:11:09 2006
@@ -0,0 +1,46 @@
+/* Copyright 2005 The Apache Software Foundation or its licensors, as applicable
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * 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 tests.api.java.beans.mock;
+
+import java.io.Serializable;
+
+/**
+ * This class is used for Introspector test.
+ */
+public class MockFooLiYang extends MockFooStop implements Serializable {
+
+	/**
+	 * Comment for <code>serialVersionUID</code>
+	 */
+	private static final long serialVersionUID = 1L;
+
+	private String name;
+
+	/**
+	 * @return Returns the name.
+	 */
+	public String getName() {
+		return name;
+	}
+
+	/**
+	 * @param name
+	 *            The name to set.
+	 */
+	public void setName(String name) {
+		this.name = name;
+	}
+}

Added: incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/MockFooLiYangBeanInfo.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/MockFooLiYangBeanInfo.java?rev=394923&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/MockFooLiYangBeanInfo.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/MockFooLiYangBeanInfo.java Tue Apr 18 05:11:09 2006
@@ -0,0 +1,37 @@
+/* Copyright 2005 The Apache Software Foundation or its licensors, as applicable
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * 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 tests.api.java.beans.mock;
+
+import java.beans.BeanDescriptor;
+import java.beans.SimpleBeanInfo;
+
+import tests.api.java.beans.EncoderTest;
+
+/**
+ * test Introspector
+ */
+public class MockFooLiYangBeanInfo extends SimpleBeanInfo {
+	private Class clazz = MockFoo.class;
+
+	private String suffix = ".BeanInfo";
+
+	public BeanDescriptor getBeanDescriptor() {
+		BeanDescriptor beanDesc = new BeanDescriptor(clazz);
+		beanDesc.setName(beanDesc.getName() + suffix);
+		beanDesc.setValue("persistenceDelegate", new EncoderTest.VerbosePD());
+		return beanDesc;
+	}
+}

Added: incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/MockFooStop.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/MockFooStop.java?rev=394923&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/MockFooStop.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/MockFooStop.java Tue Apr 18 05:11:09 2006
@@ -0,0 +1,40 @@
+/* Copyright 2005 The Apache Software Foundation or its licensors, as applicable
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * 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 tests.api.java.beans.mock;
+
+import java.io.Serializable;
+
+/**
+ * test Introspector
+ */
+public class MockFooStop implements Serializable {
+	private String label;
+
+	/**
+	 * @return Returns the label.
+	 */
+	public String getLabel() {
+		return label;
+	}
+
+	/**
+	 * @param label
+	 *            The label to set.
+	 */
+	public void setLabel(String label) {
+		this.label = label;
+	}
+}

Added: incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/MockFooSub.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/MockFooSub.java?rev=394923&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/MockFooSub.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/MockFooSub.java Tue Apr 18 05:11:09 2006
@@ -0,0 +1,51 @@
+/* Copyright 2005 The Apache Software Foundation or its licensors, as applicable
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * 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 tests.api.java.beans.mock;
+
+import tests.api.java.beans.MockPropertyChangeListener;
+
+/**
+ * test Introspector
+ */
+public class MockFooSub extends MockFooChild {
+
+	private String text;
+
+	/**
+	 * @return Returns the text.
+	 */
+	public String getText() {
+		return text;
+	}
+
+	/**
+	 * @param text
+	 *            The text to set.
+	 */
+	public void setText(String text) {
+		this.text = text;
+	}
+
+	public void addMockPropertyChangeListener(
+			MockPropertyChangeListener listener) {
+
+	}
+
+	public void removeMockPropertyChangeListener(
+			MockPropertyChangeListener listener) {
+
+	}
+}