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/06/08 05:40:30 UTC
svn commit: r412641 [29/32] - in
/incubator/harmony/enhanced/classlib/trunk/modules/beans/src:
main/java/java/beans/ main/java/java/beans/beancontext/
test/java-internal/java/beans/beancontext/
test/java/org/apache/harmony/beans/tests/ test/java/org/ap...
Modified: incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/beancontext/mock/MockBeanContextMembershipListener.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/beancontext/mock/MockBeanContextMembershipListener.java?rev=412641&r1=412640&r2=412641&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/beancontext/mock/MockBeanContextMembershipListener.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/beancontext/mock/MockBeanContextMembershipListener.java Wed Jun 7 20:40:24 2006
@@ -1,59 +1,59 @@
-/* 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 org.apache.harmony.beans.tests.java.beans.beancontext.mock;
-
-import java.beans.beancontext.BeanContextMembershipEvent;
-import java.beans.beancontext.BeanContextMembershipListener;
-
-/**
- * Mock of BeanContextMembershipListener
- */
-public class MockBeanContextMembershipListener implements
- BeanContextMembershipListener {
-
- public boolean lastEventAdd = false;
-
- public boolean lastEventRemove = false;
-
- public BeanContextMembershipEvent lastEvent;
-
- public void clearLastEvent() {
- lastEventAdd = false;
- lastEventRemove = false;
- lastEvent = null;
- }
-
- /*
- * (non-Javadoc)
- *
- * @see java.beans.beancontext.BeanContextMembershipListener#childrenAdded(java.beans.beancontext.BeanContextMembershipEvent)
- */
- public void childrenAdded(BeanContextMembershipEvent bcme) {
- lastEventAdd = true;
- lastEvent = bcme;
- }
-
- /*
- * (non-Javadoc)
- *
- * @see java.beans.beancontext.BeanContextMembershipListener#childrenRemoved(java.beans.beancontext.BeanContextMembershipEvent)
- */
- public void childrenRemoved(BeanContextMembershipEvent bcme) {
- lastEventRemove = true;
- lastEvent = bcme;
- }
-
-}
+/* 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 org.apache.harmony.beans.tests.java.beans.beancontext.mock;
+
+import java.beans.beancontext.BeanContextMembershipEvent;
+import java.beans.beancontext.BeanContextMembershipListener;
+
+/**
+ * Mock of BeanContextMembershipListener
+ */
+public class MockBeanContextMembershipListener implements
+ BeanContextMembershipListener {
+
+ public boolean lastEventAdd = false;
+
+ public boolean lastEventRemove = false;
+
+ public BeanContextMembershipEvent lastEvent;
+
+ public void clearLastEvent() {
+ lastEventAdd = false;
+ lastEventRemove = false;
+ lastEvent = null;
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see java.beans.beancontext.BeanContextMembershipListener#childrenAdded(java.beans.beancontext.BeanContextMembershipEvent)
+ */
+ public void childrenAdded(BeanContextMembershipEvent bcme) {
+ lastEventAdd = true;
+ lastEvent = bcme;
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see java.beans.beancontext.BeanContextMembershipListener#childrenRemoved(java.beans.beancontext.BeanContextMembershipEvent)
+ */
+ public void childrenRemoved(BeanContextMembershipEvent bcme) {
+ lastEventRemove = true;
+ lastEvent = bcme;
+ }
+
+}
Modified: incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/beancontext/mock/MockBeanContextMembershipListenerS.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/beancontext/mock/MockBeanContextMembershipListenerS.java?rev=412641&r1=412640&r2=412641&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/beancontext/mock/MockBeanContextMembershipListenerS.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/beancontext/mock/MockBeanContextMembershipListenerS.java Wed Jun 7 20:40:24 2006
@@ -1,66 +1,66 @@
-/* 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 org.apache.harmony.beans.tests.java.beans.beancontext.mock;
-
-import java.beans.beancontext.BeanContextMembershipEvent;
-import java.beans.beancontext.BeanContextMembershipListener;
-import java.io.Serializable;
-
-/**
- * Mock of BeanContextMembershipListener
- */
-public class MockBeanContextMembershipListenerS implements
- BeanContextMembershipListener, Serializable {
-
- public String id;
-
- public boolean lastEventAdd = false;
-
- public boolean lastEventRemove = false;
-
- public BeanContextMembershipEvent lastEvent;
-
- public MockBeanContextMembershipListenerS(String id) {
- this.id = id;
- }
-
- public void clearLastEvent() {
- lastEventAdd = false;
- lastEventRemove = false;
- lastEvent = null;
- }
-
- /*
- * (non-Javadoc)
- *
- * @see java.beans.beancontext.BeanContextMembershipListener#childrenAdded(java.beans.beancontext.BeanContextMembershipEvent)
- */
- public void childrenAdded(BeanContextMembershipEvent bcme) {
- lastEventAdd = true;
- lastEvent = bcme;
- }
-
- /*
- * (non-Javadoc)
- *
- * @see java.beans.beancontext.BeanContextMembershipListener#childrenRemoved(java.beans.beancontext.BeanContextMembershipEvent)
- */
- public void childrenRemoved(BeanContextMembershipEvent bcme) {
- lastEventRemove = true;
- lastEvent = bcme;
- }
-
-}
+/* 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 org.apache.harmony.beans.tests.java.beans.beancontext.mock;
+
+import java.beans.beancontext.BeanContextMembershipEvent;
+import java.beans.beancontext.BeanContextMembershipListener;
+import java.io.Serializable;
+
+/**
+ * Mock of BeanContextMembershipListener
+ */
+public class MockBeanContextMembershipListenerS implements
+ BeanContextMembershipListener, Serializable {
+
+ public String id;
+
+ public boolean lastEventAdd = false;
+
+ public boolean lastEventRemove = false;
+
+ public BeanContextMembershipEvent lastEvent;
+
+ public MockBeanContextMembershipListenerS(String id) {
+ this.id = id;
+ }
+
+ public void clearLastEvent() {
+ lastEventAdd = false;
+ lastEventRemove = false;
+ lastEvent = null;
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see java.beans.beancontext.BeanContextMembershipListener#childrenAdded(java.beans.beancontext.BeanContextMembershipEvent)
+ */
+ public void childrenAdded(BeanContextMembershipEvent bcme) {
+ lastEventAdd = true;
+ lastEvent = bcme;
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see java.beans.beancontext.BeanContextMembershipListener#childrenRemoved(java.beans.beancontext.BeanContextMembershipEvent)
+ */
+ public void childrenRemoved(BeanContextMembershipEvent bcme) {
+ lastEventRemove = true;
+ lastEvent = bcme;
+ }
+
+}
Modified: incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/beancontext/mock/MockBeanContextProxy.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/beancontext/mock/MockBeanContextProxy.java?rev=412641&r1=412640&r2=412641&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/beancontext/mock/MockBeanContextProxy.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/beancontext/mock/MockBeanContextProxy.java Wed Jun 7 20:40:24 2006
@@ -1,45 +1,45 @@
-/* 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 org.apache.harmony.beans.tests.java.beans.beancontext.mock;
-
-import java.beans.beancontext.BeanContextChild;
-import java.beans.beancontext.BeanContextProxy;
-
-/**
- * Mock of BeanContextProxy
- */
-public class MockBeanContextProxy implements BeanContextProxy {
-
- private BeanContextChild bcc;
-
- public MockBeanContextProxy() {
- this(null);
- }
-
- public MockBeanContextProxy(BeanContextChild bcc) {
- this.bcc = bcc;
- }
-
- /*
- * (non-Javadoc)
- *
- * @see java.beans.beancontext.BeanContextProxy#getBeanContextProxy()
- */
- public BeanContextChild getBeanContextProxy() {
- return bcc;
- }
-
-}
+/* 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 org.apache.harmony.beans.tests.java.beans.beancontext.mock;
+
+import java.beans.beancontext.BeanContextChild;
+import java.beans.beancontext.BeanContextProxy;
+
+/**
+ * Mock of BeanContextProxy
+ */
+public class MockBeanContextProxy implements BeanContextProxy {
+
+ private BeanContextChild bcc;
+
+ public MockBeanContextProxy() {
+ this(null);
+ }
+
+ public MockBeanContextProxy(BeanContextChild bcc) {
+ this.bcc = bcc;
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see java.beans.beancontext.BeanContextProxy#getBeanContextProxy()
+ */
+ public BeanContextChild getBeanContextProxy() {
+ return bcc;
+ }
+
+}
Modified: incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/beancontext/mock/MockBeanContextProxyS.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/beancontext/mock/MockBeanContextProxyS.java?rev=412641&r1=412640&r2=412641&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/beancontext/mock/MockBeanContextProxyS.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/beancontext/mock/MockBeanContextProxyS.java Wed Jun 7 20:40:24 2006
@@ -1,57 +1,57 @@
-/* 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 org.apache.harmony.beans.tests.java.beans.beancontext.mock;
-
-import java.beans.beancontext.BeanContextChild;
-import java.beans.beancontext.BeanContextProxy;
-import java.io.Serializable;
-
-/**
- * Mock of BeanContextProxy
- */
-public class MockBeanContextProxyS implements BeanContextProxy, Serializable {
-
- private String id;
-
- private BeanContextChild bcc;
-
- public MockBeanContextProxyS(String id, BeanContextChild bcc) {
- this.id = id;
- this.bcc = bcc;
- }
-
- public boolean equals(Object o) {
- if (o instanceof MockBeanContextProxyS) {
- MockBeanContextProxyS other = (MockBeanContextProxyS) o;
- return id.equals(other.id) && bcc.equals(other.bcc);
- }
- return false;
- }
-
- public int hashCode() {
- return id.hashCode() + bcc.hashCode();
- }
-
- /*
- * (non-Javadoc)
- *
- * @see java.beans.beancontext.BeanContextProxy#getBeanContextProxy()
- */
- public BeanContextChild getBeanContextProxy() {
- return bcc;
- }
-
-}
+/* 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 org.apache.harmony.beans.tests.java.beans.beancontext.mock;
+
+import java.beans.beancontext.BeanContextChild;
+import java.beans.beancontext.BeanContextProxy;
+import java.io.Serializable;
+
+/**
+ * Mock of BeanContextProxy
+ */
+public class MockBeanContextProxyS implements BeanContextProxy, Serializable {
+
+ private String id;
+
+ private BeanContextChild bcc;
+
+ public MockBeanContextProxyS(String id, BeanContextChild bcc) {
+ this.id = id;
+ this.bcc = bcc;
+ }
+
+ public boolean equals(Object o) {
+ if (o instanceof MockBeanContextProxyS) {
+ MockBeanContextProxyS other = (MockBeanContextProxyS) o;
+ return id.equals(other.id) && bcc.equals(other.bcc);
+ }
+ return false;
+ }
+
+ public int hashCode() {
+ return id.hashCode() + bcc.hashCode();
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see java.beans.beancontext.BeanContextProxy#getBeanContextProxy()
+ */
+ public BeanContextChild getBeanContextProxy() {
+ return bcc;
+ }
+
+}
Modified: incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/beancontext/mock/MockBeanContextServiceProvider.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/beancontext/mock/MockBeanContextServiceProvider.java?rev=412641&r1=412640&r2=412641&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/beancontext/mock/MockBeanContextServiceProvider.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/beancontext/mock/MockBeanContextServiceProvider.java Wed Jun 7 20:40:24 2006
@@ -1,75 +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 org.apache.harmony.beans.tests.java.beans.beancontext.mock;
-
-import java.beans.beancontext.BeanContextServiceProvider;
-import java.beans.beancontext.BeanContextServices;
-import java.util.Arrays;
-import java.util.Collections;
-import java.util.Iterator;
-import java.util.List;
-
-import org.apache.harmony.beans.tests.java.beans.beancontext.MethodInvocationRecords;
-
-/**
- * Mock of BeanContextServiceProvider
- */
-public class MockBeanContextServiceProvider implements
- BeanContextServiceProvider {
-
- public MethodInvocationRecords records = new MethodInvocationRecords();
-
- public List selectors = Arrays.asList(new Object[] { Integer.class });
-
- /*
- * (non-Javadoc)
- *
- * @see java.beans.beancontext.BeanContextServiceProvider#getService(java.beans.beancontext.BeanContextServices,
- * java.lang.Object, java.lang.Class, java.lang.Object)
- */
- public Object getService(BeanContextServices bcs, Object requestor,
- Class serviceClass, Object serviceSelector) {
- Object result = Collections.EMPTY_SET;
- records.add("getService", bcs, requestor, serviceClass,
- serviceSelector, result);
- return result;
- }
-
- /*
- * (non-Javadoc)
- *
- * @see java.beans.beancontext.BeanContextServiceProvider#releaseService(java.beans.beancontext.BeanContextServices,
- * java.lang.Object, java.lang.Object)
- */
- public void releaseService(BeanContextServices bcs, Object requestor,
- Object service) {
- records.add("releaseService", bcs, requestor, service, null);
- }
-
- /*
- * (non-Javadoc)
- *
- * @see java.beans.beancontext.BeanContextServiceProvider#getCurrentServiceSelectors(java.beans.beancontext.BeanContextServices,
- * java.lang.Class)
- */
- public Iterator getCurrentServiceSelectors(BeanContextServices bcs,
- Class serviceClass) {
- Iterator result = selectors.iterator();
- records.add("getCurrentServiceSelectors", bcs, serviceClass, result);
- return result;
- }
-
-}
+/* 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 org.apache.harmony.beans.tests.java.beans.beancontext.mock;
+
+import java.beans.beancontext.BeanContextServiceProvider;
+import java.beans.beancontext.BeanContextServices;
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.Iterator;
+import java.util.List;
+
+import org.apache.harmony.beans.tests.java.beans.beancontext.MethodInvocationRecords;
+
+/**
+ * Mock of BeanContextServiceProvider
+ */
+public class MockBeanContextServiceProvider implements
+ BeanContextServiceProvider {
+
+ public MethodInvocationRecords records = new MethodInvocationRecords();
+
+ public List selectors = Arrays.asList(new Object[] { Integer.class });
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see java.beans.beancontext.BeanContextServiceProvider#getService(java.beans.beancontext.BeanContextServices,
+ * java.lang.Object, java.lang.Class, java.lang.Object)
+ */
+ public Object getService(BeanContextServices bcs, Object requestor,
+ Class serviceClass, Object serviceSelector) {
+ Object result = Collections.EMPTY_SET;
+ records.add("getService", bcs, requestor, serviceClass,
+ serviceSelector, result);
+ return result;
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see java.beans.beancontext.BeanContextServiceProvider#releaseService(java.beans.beancontext.BeanContextServices,
+ * java.lang.Object, java.lang.Object)
+ */
+ public void releaseService(BeanContextServices bcs, Object requestor,
+ Object service) {
+ records.add("releaseService", bcs, requestor, service, null);
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see java.beans.beancontext.BeanContextServiceProvider#getCurrentServiceSelectors(java.beans.beancontext.BeanContextServices,
+ * java.lang.Class)
+ */
+ public Iterator getCurrentServiceSelectors(BeanContextServices bcs,
+ Class serviceClass) {
+ Iterator result = selectors.iterator();
+ records.add("getCurrentServiceSelectors", bcs, serviceClass, result);
+ return result;
+ }
+
+}
Modified: incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/beancontext/mock/MockBeanContextServiceProviderBeanInfo.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/beancontext/mock/MockBeanContextServiceProviderBeanInfo.java?rev=412641&r1=412640&r2=412641&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/beancontext/mock/MockBeanContextServiceProviderBeanInfo.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/beancontext/mock/MockBeanContextServiceProviderBeanInfo.java Wed Jun 7 20:40:24 2006
@@ -1,122 +1,122 @@
-/* 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 org.apache.harmony.beans.tests.java.beans.beancontext.mock;
-
-import java.awt.Image;
-import java.beans.BeanDescriptor;
-import java.beans.BeanInfo;
-import java.beans.EventSetDescriptor;
-import java.beans.MethodDescriptor;
-import java.beans.PropertyDescriptor;
-import java.beans.beancontext.BeanContextServiceProviderBeanInfo;
-
-/**
- * Mock of BeanContextServiceProviderBeanInfo
- */
-public class MockBeanContextServiceProviderBeanInfo implements
- BeanContextServiceProviderBeanInfo {
-
- /*
- * (non-Javadoc)
- *
- * @see java.beans.beancontext.BeanContextServiceProviderBeanInfo#getServicesBeanInfo()
- */
- public BeanInfo[] getServicesBeanInfo() {
- // Auto-generated method stub
- return null;
- }
-
- /*
- * (non-Javadoc)
- *
- * @see java.beans.BeanInfo#getBeanDescriptor()
- */
- public BeanDescriptor getBeanDescriptor() {
- // Auto-generated method stub
- return null;
- }
-
- /*
- * (non-Javadoc)
- *
- * @see java.beans.BeanInfo#getEventSetDescriptors()
- */
- public EventSetDescriptor[] getEventSetDescriptors() {
- // Auto-generated method stub
- return null;
- }
-
- /*
- * (non-Javadoc)
- *
- * @see java.beans.BeanInfo#getDefaultEventIndex()
- */
- public int getDefaultEventIndex() {
- // Auto-generated method stub
- return 0;
- }
-
- /*
- * (non-Javadoc)
- *
- * @see java.beans.BeanInfo#getPropertyDescriptors()
- */
- public PropertyDescriptor[] getPropertyDescriptors() {
- // Auto-generated method stub
- return null;
- }
-
- /*
- * (non-Javadoc)
- *
- * @see java.beans.BeanInfo#getDefaultPropertyIndex()
- */
- public int getDefaultPropertyIndex() {
- // Auto-generated method stub
- return 0;
- }
-
- /*
- * (non-Javadoc)
- *
- * @see java.beans.BeanInfo#getMethodDescriptors()
- */
- public MethodDescriptor[] getMethodDescriptors() {
- // Auto-generated method stub
- return null;
- }
-
- /*
- * (non-Javadoc)
- *
- * @see java.beans.BeanInfo#getAdditionalBeanInfo()
- */
- public BeanInfo[] getAdditionalBeanInfo() {
- // Auto-generated method stub
- return null;
- }
-
- /*
- * (non-Javadoc)
- *
- * @see java.beans.BeanInfo#getIcon(int)
- */
- public Image getIcon(int iconKind) {
- // Auto-generated method stub
- return null;
- }
-
-}
+/* 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 org.apache.harmony.beans.tests.java.beans.beancontext.mock;
+
+import java.awt.Image;
+import java.beans.BeanDescriptor;
+import java.beans.BeanInfo;
+import java.beans.EventSetDescriptor;
+import java.beans.MethodDescriptor;
+import java.beans.PropertyDescriptor;
+import java.beans.beancontext.BeanContextServiceProviderBeanInfo;
+
+/**
+ * Mock of BeanContextServiceProviderBeanInfo
+ */
+public class MockBeanContextServiceProviderBeanInfo implements
+ BeanContextServiceProviderBeanInfo {
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see java.beans.beancontext.BeanContextServiceProviderBeanInfo#getServicesBeanInfo()
+ */
+ public BeanInfo[] getServicesBeanInfo() {
+ // Auto-generated method stub
+ return null;
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see java.beans.BeanInfo#getBeanDescriptor()
+ */
+ public BeanDescriptor getBeanDescriptor() {
+ // Auto-generated method stub
+ return null;
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see java.beans.BeanInfo#getEventSetDescriptors()
+ */
+ public EventSetDescriptor[] getEventSetDescriptors() {
+ // Auto-generated method stub
+ return null;
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see java.beans.BeanInfo#getDefaultEventIndex()
+ */
+ public int getDefaultEventIndex() {
+ // Auto-generated method stub
+ return 0;
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see java.beans.BeanInfo#getPropertyDescriptors()
+ */
+ public PropertyDescriptor[] getPropertyDescriptors() {
+ // Auto-generated method stub
+ return null;
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see java.beans.BeanInfo#getDefaultPropertyIndex()
+ */
+ public int getDefaultPropertyIndex() {
+ // Auto-generated method stub
+ return 0;
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see java.beans.BeanInfo#getMethodDescriptors()
+ */
+ public MethodDescriptor[] getMethodDescriptors() {
+ // Auto-generated method stub
+ return null;
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see java.beans.BeanInfo#getAdditionalBeanInfo()
+ */
+ public BeanInfo[] getAdditionalBeanInfo() {
+ // Auto-generated method stub
+ return null;
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see java.beans.BeanInfo#getIcon(int)
+ */
+ public Image getIcon(int iconKind) {
+ // Auto-generated method stub
+ return null;
+ }
+
+}
Modified: incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/beancontext/mock/MockBeanContextServiceProviderS.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/beancontext/mock/MockBeanContextServiceProviderS.java?rev=412641&r1=412640&r2=412641&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/beancontext/mock/MockBeanContextServiceProviderS.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/beancontext/mock/MockBeanContextServiceProviderS.java Wed Jun 7 20:40:24 2006
@@ -1,68 +1,68 @@
-/* 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 org.apache.harmony.beans.tests.java.beans.beancontext.mock;
-
-import java.beans.beancontext.BeanContextServiceProvider;
-import java.beans.beancontext.BeanContextServices;
-import java.io.Serializable;
-import java.util.Iterator;
-
-/**
- * Mock of BeanContextServiceProvider
- */
-public class MockBeanContextServiceProviderS implements
- BeanContextServiceProvider, Serializable {
-
- public String id;
-
- public MockBeanContextServiceProviderS(String id) {
- this.id = id;
- }
-
- /*
- * (non-Javadoc)
- *
- * @see java.beans.beancontext.BeanContextServiceProvider#getService(java.beans.beancontext.BeanContextServices,
- * java.lang.Object, java.lang.Class, java.lang.Object)
- */
- public Object getService(BeanContextServices bcs, Object requestor,
- Class serviceClass, Object serviceSelector) {
- return null;
- }
-
- /*
- * (non-Javadoc)
- *
- * @see java.beans.beancontext.BeanContextServiceProvider#releaseService(java.beans.beancontext.BeanContextServices,
- * java.lang.Object, java.lang.Object)
- */
- public void releaseService(BeanContextServices bcs, Object requestor,
- Object service) {
- // nothing
- }
-
- /*
- * (non-Javadoc)
- *
- * @see java.beans.beancontext.BeanContextServiceProvider#getCurrentServiceSelectors(java.beans.beancontext.BeanContextServices,
- * java.lang.Class)
- */
- public Iterator getCurrentServiceSelectors(BeanContextServices bcs,
- Class serviceClass) {
- return null;
- }
-
-}
+/* 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 org.apache.harmony.beans.tests.java.beans.beancontext.mock;
+
+import java.beans.beancontext.BeanContextServiceProvider;
+import java.beans.beancontext.BeanContextServices;
+import java.io.Serializable;
+import java.util.Iterator;
+
+/**
+ * Mock of BeanContextServiceProvider
+ */
+public class MockBeanContextServiceProviderS implements
+ BeanContextServiceProvider, Serializable {
+
+ public String id;
+
+ public MockBeanContextServiceProviderS(String id) {
+ this.id = id;
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see java.beans.beancontext.BeanContextServiceProvider#getService(java.beans.beancontext.BeanContextServices,
+ * java.lang.Object, java.lang.Class, java.lang.Object)
+ */
+ public Object getService(BeanContextServices bcs, Object requestor,
+ Class serviceClass, Object serviceSelector) {
+ return null;
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see java.beans.beancontext.BeanContextServiceProvider#releaseService(java.beans.beancontext.BeanContextServices,
+ * java.lang.Object, java.lang.Object)
+ */
+ public void releaseService(BeanContextServices bcs, Object requestor,
+ Object service) {
+ // nothing
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see java.beans.beancontext.BeanContextServiceProvider#getCurrentServiceSelectors(java.beans.beancontext.BeanContextServices,
+ * java.lang.Class)
+ */
+ public Iterator getCurrentServiceSelectors(BeanContextServices bcs,
+ Class serviceClass) {
+ return null;
+ }
+
+}
Modified: incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/beancontext/mock/MockBeanContextServiceRevokedListener.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/beancontext/mock/MockBeanContextServiceRevokedListener.java?rev=412641&r1=412640&r2=412641&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/beancontext/mock/MockBeanContextServiceRevokedListener.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/beancontext/mock/MockBeanContextServiceRevokedListener.java Wed Jun 7 20:40:24 2006
@@ -1,42 +1,42 @@
-/* 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 org.apache.harmony.beans.tests.java.beans.beancontext.mock;
-
-import java.beans.beancontext.BeanContextServiceRevokedEvent;
-import java.beans.beancontext.BeanContextServiceRevokedListener;
-
-/**
- * Mock of BeanContextServiceRevokedListener
- */
-public class MockBeanContextServiceRevokedListener implements
- BeanContextServiceRevokedListener {
-
- public BeanContextServiceRevokedEvent lastEvent;
-
- public void clearLastEvent() {
- lastEvent = null;
- }
-
- /*
- * (non-Javadoc)
- *
- * @see java.beans.beancontext.BeanContextServiceRevokedListener#serviceRevoked(java.beans.beancontext.BeanContextServiceRevokedEvent)
- */
- public void serviceRevoked(BeanContextServiceRevokedEvent bcsre) {
- lastEvent = bcsre;
- }
-
-}
+/* 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 org.apache.harmony.beans.tests.java.beans.beancontext.mock;
+
+import java.beans.beancontext.BeanContextServiceRevokedEvent;
+import java.beans.beancontext.BeanContextServiceRevokedListener;
+
+/**
+ * Mock of BeanContextServiceRevokedListener
+ */
+public class MockBeanContextServiceRevokedListener implements
+ BeanContextServiceRevokedListener {
+
+ public BeanContextServiceRevokedEvent lastEvent;
+
+ public void clearLastEvent() {
+ lastEvent = null;
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see java.beans.beancontext.BeanContextServiceRevokedListener#serviceRevoked(java.beans.beancontext.BeanContextServiceRevokedEvent)
+ */
+ public void serviceRevoked(BeanContextServiceRevokedEvent bcsre) {
+ lastEvent = bcsre;
+ }
+
+}
Modified: incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/beancontext/mock/MockBeanContextServices.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/beancontext/mock/MockBeanContextServices.java?rev=412641&r1=412640&r2=412641&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/beancontext/mock/MockBeanContextServices.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/beancontext/mock/MockBeanContextServices.java Wed Jun 7 20:40:24 2006
@@ -1,485 +1,485 @@
-/* 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 org.apache.harmony.beans.tests.java.beans.beancontext.mock;
-
-import java.beans.PropertyChangeListener;
-import java.beans.PropertyVetoException;
-import java.beans.VetoableChangeListener;
-import java.beans.beancontext.BeanContext;
-import java.beans.beancontext.BeanContextChild;
-import java.beans.beancontext.BeanContextMembershipListener;
-import java.beans.beancontext.BeanContextServiceAvailableEvent;
-import java.beans.beancontext.BeanContextServiceProvider;
-import java.beans.beancontext.BeanContextServiceRevokedEvent;
-import java.beans.beancontext.BeanContextServiceRevokedListener;
-import java.beans.beancontext.BeanContextServices;
-import java.beans.beancontext.BeanContextServicesListener;
-import java.io.IOException;
-import java.io.InputStream;
-import java.net.URL;
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.Iterator;
-import java.util.TooManyListenersException;
-
-/**
- * Mock of BeanContextServices
- */
-public class MockBeanContextServices implements BeanContextServices {
-
- /*
- * (non-Javadoc)
- *
- * @see java.beans.beancontext.BeanContextServices#addService(java.lang.Class,
- * java.beans.beancontext.BeanContextServiceProvider)
- */
- public boolean addService(Class serviceClass,
- BeanContextServiceProvider serviceProvider) {
- // Auto-generated method stub
- return false;
- }
-
- /*
- * (non-Javadoc)
- *
- * @see java.beans.beancontext.BeanContextServices#revokeService(java.lang.Class,
- * java.beans.beancontext.BeanContextServiceProvider, boolean)
- */
- public void revokeService(Class serviceClass,
- BeanContextServiceProvider serviceProvider,
- boolean revokeCurrentServicesNow) {
- // Auto-generated method stub
-
- }
-
- /*
- * (non-Javadoc)
- *
- * @see java.beans.beancontext.BeanContextServices#hasService(java.lang.Class)
- */
- public boolean hasService(Class serviceClass) {
- // Auto-generated method stub
- return false;
- }
-
- /*
- * (non-Javadoc)
- *
- * @see java.beans.beancontext.BeanContextServices#getService(java.beans.beancontext.BeanContextChild,
- * java.lang.Object, java.lang.Class, java.lang.Object,
- * java.beans.beancontext.BeanContextServiceRevokedListener)
- */
- public Object getService(BeanContextChild child, Object requestor,
- Class serviceClass, Object serviceSelector,
- BeanContextServiceRevokedListener bcsrl)
- throws TooManyListenersException {
- // Auto-generated method stub
- return null;
- }
-
- /*
- * (non-Javadoc)
- *
- * @see java.beans.beancontext.BeanContextServices#releaseService(java.beans.beancontext.BeanContextChild,
- * java.lang.Object, java.lang.Object)
- */
- public void releaseService(BeanContextChild child, Object requestor,
- Object service) {
- // Auto-generated method stub
-
- }
-
- /*
- * (non-Javadoc)
- *
- * @see java.beans.beancontext.BeanContextServices#getCurrentServiceClasses()
- */
- public Iterator getCurrentServiceClasses() {
- // Auto-generated method stub
- return null;
- }
-
- /*
- * (non-Javadoc)
- *
- * @see java.beans.beancontext.BeanContextServices#getCurrentServiceSelectors(java.lang.Class)
- */
- public Iterator getCurrentServiceSelectors(Class serviceClass) {
- // Auto-generated method stub
- ArrayList list = new ArrayList();
- list.add("1");
- list.add("2");
- list.add("3");
- return list.iterator();
- }
-
- /*
- * (non-Javadoc)
- *
- * @see java.beans.beancontext.BeanContextServices#addBeanContextServicesListener(java.beans.beancontext.BeanContextServicesListener)
- */
- public void addBeanContextServicesListener(BeanContextServicesListener bcsl) {
- // Auto-generated method stub
-
- }
-
- /*
- * (non-Javadoc)
- *
- * @see java.beans.beancontext.BeanContextServices#removeBeanContextServicesListener(java.beans.beancontext.BeanContextServicesListener)
- */
- public void removeBeanContextServicesListener(
- BeanContextServicesListener bcsl) {
- // Auto-generated method stub
-
- }
-
- /*
- * (non-Javadoc)
- *
- * @see java.beans.beancontext.BeanContext#instantiateChild(java.lang.String)
- */
- public Object instantiateChild(String beanName) throws IOException,
- ClassNotFoundException {
- // Auto-generated method stub
- return null;
- }
-
- /*
- * (non-Javadoc)
- *
- * @see java.beans.beancontext.BeanContext#getResourceAsStream(java.lang.String,
- * java.beans.beancontext.BeanContextChild)
- */
- public InputStream getResourceAsStream(String name, BeanContextChild bcc)
- throws IllegalArgumentException {
- // Auto-generated method stub
- return null;
- }
-
- /*
- * (non-Javadoc)
- *
- * @see java.beans.beancontext.BeanContext#getResource(java.lang.String,
- * java.beans.beancontext.BeanContextChild)
- */
- public URL getResource(String name, BeanContextChild bcc)
- throws IllegalArgumentException {
- // Auto-generated method stub
- return null;
- }
-
- /*
- * (non-Javadoc)
- *
- * @see java.beans.beancontext.BeanContext#addBeanContextMembershipListener(java.beans.beancontext.BeanContextMembershipListener)
- */
- public void addBeanContextMembershipListener(
- BeanContextMembershipListener bcml) {
- // Auto-generated method stub
-
- }
-
- /*
- * (non-Javadoc)
- *
- * @see java.beans.beancontext.BeanContext#removeBeanContextMembershipListener(java.beans.beancontext.BeanContextMembershipListener)
- */
- public void removeBeanContextMembershipListener(
- BeanContextMembershipListener bcml) {
- // Auto-generated method stub
-
- }
-
- /*
- * (non-Javadoc)
- *
- * @see java.beans.beancontext.BeanContextServicesListener#serviceAvailable(java.beans.beancontext.BeanContextServiceAvailableEvent)
- */
- public void serviceAvailable(BeanContextServiceAvailableEvent bcsae) {
- // Auto-generated method stub
-
- }
-
- /*
- * (non-Javadoc)
- *
- * @see java.beans.beancontext.BeanContextChild#setBeanContext(java.beans.beancontext.BeanContext)
- */
- public void setBeanContext(BeanContext bc) throws PropertyVetoException {
- // Auto-generated method stub
-
- }
-
- /*
- * (non-Javadoc)
- *
- * @see java.beans.beancontext.BeanContextChild#getBeanContext()
- */
- public BeanContext getBeanContext() {
- // Auto-generated method stub
- return null;
- }
-
- /*
- * (non-Javadoc)
- *
- * @see java.beans.beancontext.BeanContextChild#addPropertyChangeListener(java.lang.String,
- * java.beans.PropertyChangeListener)
- */
- public void addPropertyChangeListener(String name,
- PropertyChangeListener pcl) {
- // Auto-generated method stub
-
- }
-
- /*
- * (non-Javadoc)
- *
- * @see java.beans.beancontext.BeanContextChild#removePropertyChangeListener(java.lang.String,
- * java.beans.PropertyChangeListener)
- */
- public void removePropertyChangeListener(String name,
- PropertyChangeListener pcl) {
- // Auto-generated method stub
-
- }
-
- /*
- * (non-Javadoc)
- *
- * @see java.beans.beancontext.BeanContextChild#addVetoableChangeListener(java.lang.String,
- * java.beans.VetoableChangeListener)
- */
- public void addVetoableChangeListener(String name,
- VetoableChangeListener vcl) {
- // Auto-generated method stub
-
- }
-
- /*
- * (non-Javadoc)
- *
- * @see java.beans.beancontext.BeanContextChild#removeVetoableChangeListener(java.lang.String,
- * java.beans.VetoableChangeListener)
- */
- public void removeVetoableChangeListener(String name,
- VetoableChangeListener vcl) {
- // Auto-generated method stub
-
- }
-
- /*
- * (non-Javadoc)
- *
- * @see java.util.Collection#size()
- */
- public int size() {
- // Auto-generated method stub
- return 0;
- }
-
- /*
- * (non-Javadoc)
- *
- * @see java.util.Collection#isEmpty()
- */
- public boolean isEmpty() {
- // Auto-generated method stub
- return false;
- }
-
- /*
- * (non-Javadoc)
- *
- * @see java.util.Collection#contains(java.lang.Object)
- */
- public boolean contains(Object o) {
- // Auto-generated method stub
- return false;
- }
-
- /*
- * (non-Javadoc)
- *
- * @see java.util.Collection#iterator()
- */
- public Iterator iterator() {
- // Auto-generated method stub
- return null;
- }
-
- /*
- * (non-Javadoc)
- *
- * @see java.util.Collection#toArray()
- */
- public Object[] toArray() {
- // Auto-generated method stub
- return null;
- }
-
- /*
- * (non-Javadoc)
- *
- * @see java.util.Collection#toArray(java.lang.Object[])
- */
- public Object[] toArray(Object[] a) {
- // Auto-generated method stub
- return null;
- }
-
- /*
- * (non-Javadoc)
- *
- * @see java.util.Collection#add(java.lang.Object)
- */
- public boolean add(Object o) {
- // Auto-generated method stub
- return false;
- }
-
- /*
- * (non-Javadoc)
- *
- * @see java.util.Collection#remove(java.lang.Object)
- */
- public boolean remove(Object o) {
- // Auto-generated method stub
- return false;
- }
-
- /*
- * (non-Javadoc)
- *
- * @see java.util.Collection#containsAll(java.util.Collection)
- */
- public boolean containsAll(Collection c) {
- // Auto-generated method stub
- return false;
- }
-
- /*
- * (non-Javadoc)
- *
- * @see java.util.Collection#addAll(java.util.Collection)
- */
- public boolean addAll(Collection c) {
- // Auto-generated method stub
- return false;
- }
-
- /*
- * (non-Javadoc)
- *
- * @see java.util.Collection#removeAll(java.util.Collection)
- */
- public boolean removeAll(Collection c) {
- // Auto-generated method stub
- return false;
- }
-
- /*
- * (non-Javadoc)
- *
- * @see java.util.Collection#retainAll(java.util.Collection)
- */
- public boolean retainAll(Collection c) {
- // Auto-generated method stub
- return false;
- }
-
- /*
- * (non-Javadoc)
- *
- * @see java.util.Collection#clear()
- */
- public void clear() {
- // Auto-generated method stub
-
- }
-
- /*
- * (non-Javadoc)
- *
- * @see java.beans.DesignMode#setDesignTime(boolean)
- */
- public void setDesignTime(boolean designTime) {
- // Auto-generated method stub
-
- }
-
- /*
- * (non-Javadoc)
- *
- * @see java.beans.DesignMode#isDesignTime()
- */
- public boolean isDesignTime() {
- // Auto-generated method stub
- return false;
- }
-
- /*
- * (non-Javadoc)
- *
- * @see java.beans.Visibility#needsGui()
- */
- public boolean needsGui() {
- // Auto-generated method stub
- return false;
- }
-
- /*
- * (non-Javadoc)
- *
- * @see java.beans.Visibility#dontUseGui()
- */
- public void dontUseGui() {
- // Auto-generated method stub
-
- }
-
- /*
- * (non-Javadoc)
- *
- * @see java.beans.Visibility#okToUseGui()
- */
- public void okToUseGui() {
- // Auto-generated method stub
-
- }
-
- /*
- * (non-Javadoc)
- *
- * @see java.beans.Visibility#avoidingGui()
- */
- public boolean avoidingGui() {
- // Auto-generated method stub
- return false;
- }
-
- /*
- * (non-Javadoc)
- *
- * @see java.beans.beancontext.BeanContextServiceRevokedListener#serviceRevoked(java.beans.beancontext.BeanContextServiceRevokedEvent)
- */
- public void serviceRevoked(BeanContextServiceRevokedEvent bcsre) {
- // Auto-generated method stub
-
- }
-
-}
+/* 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 org.apache.harmony.beans.tests.java.beans.beancontext.mock;
+
+import java.beans.PropertyChangeListener;
+import java.beans.PropertyVetoException;
+import java.beans.VetoableChangeListener;
+import java.beans.beancontext.BeanContext;
+import java.beans.beancontext.BeanContextChild;
+import java.beans.beancontext.BeanContextMembershipListener;
+import java.beans.beancontext.BeanContextServiceAvailableEvent;
+import java.beans.beancontext.BeanContextServiceProvider;
+import java.beans.beancontext.BeanContextServiceRevokedEvent;
+import java.beans.beancontext.BeanContextServiceRevokedListener;
+import java.beans.beancontext.BeanContextServices;
+import java.beans.beancontext.BeanContextServicesListener;
+import java.io.IOException;
+import java.io.InputStream;
+import java.net.URL;
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.Iterator;
+import java.util.TooManyListenersException;
+
+/**
+ * Mock of BeanContextServices
+ */
+public class MockBeanContextServices implements BeanContextServices {
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see java.beans.beancontext.BeanContextServices#addService(java.lang.Class,
+ * java.beans.beancontext.BeanContextServiceProvider)
+ */
+ public boolean addService(Class serviceClass,
+ BeanContextServiceProvider serviceProvider) {
+ // Auto-generated method stub
+ return false;
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see java.beans.beancontext.BeanContextServices#revokeService(java.lang.Class,
+ * java.beans.beancontext.BeanContextServiceProvider, boolean)
+ */
+ public void revokeService(Class serviceClass,
+ BeanContextServiceProvider serviceProvider,
+ boolean revokeCurrentServicesNow) {
+ // Auto-generated method stub
+
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see java.beans.beancontext.BeanContextServices#hasService(java.lang.Class)
+ */
+ public boolean hasService(Class serviceClass) {
+ // Auto-generated method stub
+ return false;
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see java.beans.beancontext.BeanContextServices#getService(java.beans.beancontext.BeanContextChild,
+ * java.lang.Object, java.lang.Class, java.lang.Object,
+ * java.beans.beancontext.BeanContextServiceRevokedListener)
+ */
+ public Object getService(BeanContextChild child, Object requestor,
+ Class serviceClass, Object serviceSelector,
+ BeanContextServiceRevokedListener bcsrl)
+ throws TooManyListenersException {
+ // Auto-generated method stub
+ return null;
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see java.beans.beancontext.BeanContextServices#releaseService(java.beans.beancontext.BeanContextChild,
+ * java.lang.Object, java.lang.Object)
+ */
+ public void releaseService(BeanContextChild child, Object requestor,
+ Object service) {
+ // Auto-generated method stub
+
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see java.beans.beancontext.BeanContextServices#getCurrentServiceClasses()
+ */
+ public Iterator getCurrentServiceClasses() {
+ // Auto-generated method stub
+ return null;
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see java.beans.beancontext.BeanContextServices#getCurrentServiceSelectors(java.lang.Class)
+ */
+ public Iterator getCurrentServiceSelectors(Class serviceClass) {
+ // Auto-generated method stub
+ ArrayList list = new ArrayList();
+ list.add("1");
+ list.add("2");
+ list.add("3");
+ return list.iterator();
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see java.beans.beancontext.BeanContextServices#addBeanContextServicesListener(java.beans.beancontext.BeanContextServicesListener)
+ */
+ public void addBeanContextServicesListener(BeanContextServicesListener bcsl) {
+ // Auto-generated method stub
+
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see java.beans.beancontext.BeanContextServices#removeBeanContextServicesListener(java.beans.beancontext.BeanContextServicesListener)
+ */
+ public void removeBeanContextServicesListener(
+ BeanContextServicesListener bcsl) {
+ // Auto-generated method stub
+
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see java.beans.beancontext.BeanContext#instantiateChild(java.lang.String)
+ */
+ public Object instantiateChild(String beanName) throws IOException,
+ ClassNotFoundException {
+ // Auto-generated method stub
+ return null;
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see java.beans.beancontext.BeanContext#getResourceAsStream(java.lang.String,
+ * java.beans.beancontext.BeanContextChild)
+ */
+ public InputStream getResourceAsStream(String name, BeanContextChild bcc)
+ throws IllegalArgumentException {
+ // Auto-generated method stub
+ return null;
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see java.beans.beancontext.BeanContext#getResource(java.lang.String,
+ * java.beans.beancontext.BeanContextChild)
+ */
+ public URL getResource(String name, BeanContextChild bcc)
+ throws IllegalArgumentException {
+ // Auto-generated method stub
+ return null;
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see java.beans.beancontext.BeanContext#addBeanContextMembershipListener(java.beans.beancontext.BeanContextMembershipListener)
+ */
+ public void addBeanContextMembershipListener(
+ BeanContextMembershipListener bcml) {
+ // Auto-generated method stub
+
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see java.beans.beancontext.BeanContext#removeBeanContextMembershipListener(java.beans.beancontext.BeanContextMembershipListener)
+ */
+ public void removeBeanContextMembershipListener(
+ BeanContextMembershipListener bcml) {
+ // Auto-generated method stub
+
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see java.beans.beancontext.BeanContextServicesListener#serviceAvailable(java.beans.beancontext.BeanContextServiceAvailableEvent)
+ */
+ public void serviceAvailable(BeanContextServiceAvailableEvent bcsae) {
+ // Auto-generated method stub
+
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see java.beans.beancontext.BeanContextChild#setBeanContext(java.beans.beancontext.BeanContext)
+ */
+ public void setBeanContext(BeanContext bc) throws PropertyVetoException {
+ // Auto-generated method stub
+
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see java.beans.beancontext.BeanContextChild#getBeanContext()
+ */
+ public BeanContext getBeanContext() {
+ // Auto-generated method stub
+ return null;
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see java.beans.beancontext.BeanContextChild#addPropertyChangeListener(java.lang.String,
+ * java.beans.PropertyChangeListener)
+ */
+ public void addPropertyChangeListener(String name,
+ PropertyChangeListener pcl) {
+ // Auto-generated method stub
+
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see java.beans.beancontext.BeanContextChild#removePropertyChangeListener(java.lang.String,
+ * java.beans.PropertyChangeListener)
+ */
+ public void removePropertyChangeListener(String name,
+ PropertyChangeListener pcl) {
+ // Auto-generated method stub
+
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see java.beans.beancontext.BeanContextChild#addVetoableChangeListener(java.lang.String,
+ * java.beans.VetoableChangeListener)
+ */
+ public void addVetoableChangeListener(String name,
+ VetoableChangeListener vcl) {
+ // Auto-generated method stub
+
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see java.beans.beancontext.BeanContextChild#removeVetoableChangeListener(java.lang.String,
+ * java.beans.VetoableChangeListener)
+ */
+ public void removeVetoableChangeListener(String name,
+ VetoableChangeListener vcl) {
+ // Auto-generated method stub
+
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see java.util.Collection#size()
+ */
+ public int size() {
+ // Auto-generated method stub
+ return 0;
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see java.util.Collection#isEmpty()
+ */
+ public boolean isEmpty() {
+ // Auto-generated method stub
+ return false;
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see java.util.Collection#contains(java.lang.Object)
+ */
+ public boolean contains(Object o) {
+ // Auto-generated method stub
+ return false;
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see java.util.Collection#iterator()
+ */
+ public Iterator iterator() {
+ // Auto-generated method stub
+ return null;
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see java.util.Collection#toArray()
+ */
+ public Object[] toArray() {
+ // Auto-generated method stub
+ return null;
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see java.util.Collection#toArray(java.lang.Object[])
+ */
+ public Object[] toArray(Object[] a) {
+ // Auto-generated method stub
+ return null;
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see java.util.Collection#add(java.lang.Object)
+ */
+ public boolean add(Object o) {
+ // Auto-generated method stub
+ return false;
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see java.util.Collection#remove(java.lang.Object)
+ */
+ public boolean remove(Object o) {
+ // Auto-generated method stub
+ return false;
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see java.util.Collection#containsAll(java.util.Collection)
+ */
+ public boolean containsAll(Collection c) {
+ // Auto-generated method stub
+ return false;
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see java.util.Collection#addAll(java.util.Collection)
+ */
+ public boolean addAll(Collection c) {
+ // Auto-generated method stub
+ return false;
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see java.util.Collection#removeAll(java.util.Collection)
+ */
+ public boolean removeAll(Collection c) {
+ // Auto-generated method stub
+ return false;
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see java.util.Collection#retainAll(java.util.Collection)
+ */
+ public boolean retainAll(Collection c) {
+ // Auto-generated method stub
+ return false;
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see java.util.Collection#clear()
+ */
+ public void clear() {
+ // Auto-generated method stub
+
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see java.beans.DesignMode#setDesignTime(boolean)
+ */
+ public void setDesignTime(boolean designTime) {
+ // Auto-generated method stub
+
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see java.beans.DesignMode#isDesignTime()
+ */
+ public boolean isDesignTime() {
+ // Auto-generated method stub
+ return false;
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see java.beans.Visibility#needsGui()
+ */
+ public boolean needsGui() {
+ // Auto-generated method stub
+ return false;
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see java.beans.Visibility#dontUseGui()
+ */
+ public void dontUseGui() {
+ // Auto-generated method stub
+
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see java.beans.Visibility#okToUseGui()
+ */
+ public void okToUseGui() {
+ // Auto-generated method stub
+
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see java.beans.Visibility#avoidingGui()
+ */
+ public boolean avoidingGui() {
+ // Auto-generated method stub
+ return false;
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see java.beans.beancontext.BeanContextServiceRevokedListener#serviceRevoked(java.beans.beancontext.BeanContextServiceRevokedEvent)
+ */
+ public void serviceRevoked(BeanContextServiceRevokedEvent bcsre) {
+ // Auto-generated method stub
+
+ }
+
+}
Modified: incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/beancontext/mock/MockBeanContextServicesListener.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/beancontext/mock/MockBeanContextServicesListener.java?rev=412641&r1=412640&r2=412641&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/beancontext/mock/MockBeanContextServicesListener.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/beancontext/mock/MockBeanContextServicesListener.java Wed Jun 7 20:40:24 2006
@@ -1,55 +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 org.apache.harmony.beans.tests.java.beans.beancontext.mock;
-
-import java.beans.beancontext.BeanContextServiceAvailableEvent;
-import java.beans.beancontext.BeanContextServiceRevokedEvent;
-import java.beans.beancontext.BeanContextServicesListener;
-
-/**
- * Mock of BeanContextServicesListener
- */
-public class MockBeanContextServicesListener implements
- BeanContextServicesListener {
-
- public BeanContextServiceAvailableEvent lastAvailableEvent;
-
- public BeanContextServiceRevokedEvent lastRevokedEvent;
-
- public void clearLastEvent() {
- lastAvailableEvent = null;
- lastRevokedEvent = null;
- }
-
- /*
- * (non-Javadoc)
- *
- * @see java.beans.beancontext.BeanContextServicesListener#serviceAvailable(java.beans.beancontext.BeanContextServiceAvailableEvent)
- */
- public void serviceAvailable(BeanContextServiceAvailableEvent bcsae) {
- lastAvailableEvent = bcsae;
- }
-
- /*
- * (non-Javadoc)
- *
- * @see java.beans.beancontext.BeanContextServiceRevokedListener#serviceRevoked(java.beans.beancontext.BeanContextServiceRevokedEvent)
- */
- public void serviceRevoked(BeanContextServiceRevokedEvent bcsre) {
- lastRevokedEvent = bcsre;
- }
-
-}
+/* 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 org.apache.harmony.beans.tests.java.beans.beancontext.mock;
+
+import java.beans.beancontext.BeanContextServiceAvailableEvent;
+import java.beans.beancontext.BeanContextServiceRevokedEvent;
+import java.beans.beancontext.BeanContextServicesListener;
+
+/**
+ * Mock of BeanContextServicesListener
+ */
+public class MockBeanContextServicesListener implements
+ BeanContextServicesListener {
+
+ public BeanContextServiceAvailableEvent lastAvailableEvent;
+
+ public BeanContextServiceRevokedEvent lastRevokedEvent;
+
+ public void clearLastEvent() {
+ lastAvailableEvent = null;
+ lastRevokedEvent = null;
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see java.beans.beancontext.BeanContextServicesListener#serviceAvailable(java.beans.beancontext.BeanContextServiceAvailableEvent)
+ */
+ public void serviceAvailable(BeanContextServiceAvailableEvent bcsae) {
+ lastAvailableEvent = bcsae;
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see java.beans.beancontext.BeanContextServiceRevokedListener#serviceRevoked(java.beans.beancontext.BeanContextServiceRevokedEvent)
+ */
+ public void serviceRevoked(BeanContextServiceRevokedEvent bcsre) {
+ lastRevokedEvent = bcsre;
+ }
+
+}
Modified: incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/beancontext/mock/MockBeanContextServicesListenerS.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/beancontext/mock/MockBeanContextServicesListenerS.java?rev=412641&r1=412640&r2=412641&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/beancontext/mock/MockBeanContextServicesListenerS.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/beancontext/mock/MockBeanContextServicesListenerS.java Wed Jun 7 20:40:24 2006
@@ -1,53 +1,53 @@
-/* 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 org.apache.harmony.beans.tests.java.beans.beancontext.mock;
-
-import java.beans.beancontext.BeanContextServiceAvailableEvent;
-import java.beans.beancontext.BeanContextServiceRevokedEvent;
-import java.beans.beancontext.BeanContextServicesListener;
-import java.io.Serializable;
-
-/**
- * Mock of BeanContextServicesListener
- */
-public class MockBeanContextServicesListenerS implements
- BeanContextServicesListener, Serializable {
-
- public String id;
-
- public MockBeanContextServicesListenerS(String id) {
- this.id = id;
- }
-
- /*
- * (non-Javadoc)
- *
- * @see java.beans.beancontext.BeanContextServicesListener#serviceAvailable(java.beans.beancontext.BeanContextServiceAvailableEvent)
- */
- public void serviceAvailable(BeanContextServiceAvailableEvent bcsae) {
- // nothing
- }
-
- /*
- * (non-Javadoc)
- *
- * @see java.beans.beancontext.BeanContextServiceRevokedListener#serviceRevoked(java.beans.beancontext.BeanContextServiceRevokedEvent)
- */
- public void serviceRevoked(BeanContextServiceRevokedEvent bcsre) {
- // nothing
- }
-
-}
+/* 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 org.apache.harmony.beans.tests.java.beans.beancontext.mock;
+
+import java.beans.beancontext.BeanContextServiceAvailableEvent;
+import java.beans.beancontext.BeanContextServiceRevokedEvent;
+import java.beans.beancontext.BeanContextServicesListener;
+import java.io.Serializable;
+
+/**
+ * Mock of BeanContextServicesListener
+ */
+public class MockBeanContextServicesListenerS implements
+ BeanContextServicesListener, Serializable {
+
+ public String id;
+
+ public MockBeanContextServicesListenerS(String id) {
+ this.id = id;
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see java.beans.beancontext.BeanContextServicesListener#serviceAvailable(java.beans.beancontext.BeanContextServiceAvailableEvent)
+ */
+ public void serviceAvailable(BeanContextServiceAvailableEvent bcsae) {
+ // nothing
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see java.beans.beancontext.BeanContextServiceRevokedListener#serviceRevoked(java.beans.beancontext.BeanContextServiceRevokedEvent)
+ */
+ public void serviceRevoked(BeanContextServiceRevokedEvent bcsre) {
+ // nothing
+ }
+
+}
Modified: incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/beancontext/mock/MockPropertyChangeListener.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/beancontext/mock/MockPropertyChangeListener.java?rev=412641&r1=412640&r2=412641&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/beancontext/mock/MockPropertyChangeListener.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/beancontext/mock/MockPropertyChangeListener.java Wed Jun 7 20:40:24 2006
@@ -1,41 +1,41 @@
-/* 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 org.apache.harmony.beans.tests.java.beans.beancontext.mock;
-
-import java.beans.PropertyChangeEvent;
-import java.beans.PropertyChangeListener;
-
-/**
- * Mock of PropertyChangeListener
- */
-public class MockPropertyChangeListener implements PropertyChangeListener {
-
- public PropertyChangeEvent lastEvent;
-
- public void clearLastEvent() {
- lastEvent = null;
- }
-
- /*
- * (non-Javadoc)
- *
- * @see java.beans.PropertyChangeListener#propertyChange(java.beans.PropertyChangeEvent)
- */
- public void propertyChange(PropertyChangeEvent evt) {
- lastEvent = evt;
- }
-
-}
+/* 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 org.apache.harmony.beans.tests.java.beans.beancontext.mock;
+
+import java.beans.PropertyChangeEvent;
+import java.beans.PropertyChangeListener;
+
+/**
+ * Mock of PropertyChangeListener
+ */
+public class MockPropertyChangeListener implements PropertyChangeListener {
+
+ public PropertyChangeEvent lastEvent;
+
+ public void clearLastEvent() {
+ lastEvent = null;
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see java.beans.PropertyChangeListener#propertyChange(java.beans.PropertyChangeEvent)
+ */
+ public void propertyChange(PropertyChangeEvent evt) {
+ lastEvent = evt;
+ }
+
+}
Modified: incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/beancontext/mock/MockPropertyChangeListenerS.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/beancontext/mock/MockPropertyChangeListenerS.java?rev=412641&r1=412640&r2=412641&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/beancontext/mock/MockPropertyChangeListenerS.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/beancontext/mock/MockPropertyChangeListenerS.java Wed Jun 7 20:40:24 2006
@@ -1,49 +1,49 @@
-/* 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 org.apache.harmony.beans.tests.java.beans.beancontext.mock;
-
-import java.beans.PropertyChangeEvent;
-import java.beans.PropertyChangeListener;
-import java.io.Serializable;
-
-/**
- * Mock of PropertyChangeListener
- */
-public class MockPropertyChangeListenerS implements PropertyChangeListener,
- Serializable {
-
- public PropertyChangeEvent lastEvent;
-
- public String id;
-
- public MockPropertyChangeListenerS(String id) {
- this.id = id;
- }
-
- public void clearLastEvent() {
- lastEvent = null;
- }
-
- /*
- * (non-Javadoc)
- *
- * @see java.beans.PropertyChangeListener#propertyChange(java.beans.PropertyChangeEvent)
- */
- public void propertyChange(PropertyChangeEvent evt) {
- lastEvent = evt;
- }
-
-}
+/* 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 org.apache.harmony.beans.tests.java.beans.beancontext.mock;
+
+import java.beans.PropertyChangeEvent;
+import java.beans.PropertyChangeListener;
+import java.io.Serializable;
+
+/**
+ * Mock of PropertyChangeListener
+ */
+public class MockPropertyChangeListenerS implements PropertyChangeListener,
+ Serializable {
+
+ public PropertyChangeEvent lastEvent;
+
+ public String id;
+
+ public MockPropertyChangeListenerS(String id) {
+ this.id = id;
+ }
+
+ public void clearLastEvent() {
+ lastEvent = null;
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see java.beans.PropertyChangeListener#propertyChange(java.beans.PropertyChangeEvent)
+ */
+ public void propertyChange(PropertyChangeEvent evt) {
+ lastEvent = evt;
+ }
+
+}
Modified: incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/beancontext/mock/MockVetoChangeListener.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/beancontext/mock/MockVetoChangeListener.java?rev=412641&r1=412640&r2=412641&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/beancontext/mock/MockVetoChangeListener.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/beancontext/mock/MockVetoChangeListener.java Wed Jun 7 20:40:24 2006
@@ -1,44 +1,44 @@
-/* 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 org.apache.harmony.beans.tests.java.beans.beancontext.mock;
-
-import java.beans.PropertyChangeEvent;
-import java.beans.PropertyVetoException;
-import java.beans.VetoableChangeListener;
-
-/**
- * Mock of VetoableChangeListener
- */
-public class MockVetoChangeListener implements VetoableChangeListener {
-
- public PropertyChangeEvent lastEvent;
-
- public void clearLastEvent() {
- lastEvent = null;
- }
-
- /*
- * (non-Javadoc)
- *
- * @see java.beans.VetoableChangeListener#vetoableChange(java.beans.PropertyChangeEvent)
- */
- public void vetoableChange(PropertyChangeEvent evt)
- throws PropertyVetoException {
- lastEvent = evt;
- throw new PropertyVetoException("NO CHANGE ALLOWED", evt);
- }
-
-}
+/* 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 org.apache.harmony.beans.tests.java.beans.beancontext.mock;
+
+import java.beans.PropertyChangeEvent;
+import java.beans.PropertyVetoException;
+import java.beans.VetoableChangeListener;
+
+/**
+ * Mock of VetoableChangeListener
+ */
+public class MockVetoChangeListener implements VetoableChangeListener {
+
+ public PropertyChangeEvent lastEvent;
+
+ public void clearLastEvent() {
+ lastEvent = null;
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see java.beans.VetoableChangeListener#vetoableChange(java.beans.PropertyChangeEvent)
+ */
+ public void vetoableChange(PropertyChangeEvent evt)
+ throws PropertyVetoException {
+ lastEvent = evt;
+ throw new PropertyVetoException("NO CHANGE ALLOWED", evt);
+ }
+
+}
Modified: incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/beancontext/mock/MockVetoableChangeListener.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/beancontext/mock/MockVetoableChangeListener.java?rev=412641&r1=412640&r2=412641&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/beancontext/mock/MockVetoableChangeListener.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/beancontext/mock/MockVetoableChangeListener.java Wed Jun 7 20:40:24 2006
@@ -1,43 +1,43 @@
-/* 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 org.apache.harmony.beans.tests.java.beans.beancontext.mock;
-
-import java.beans.PropertyChangeEvent;
-import java.beans.PropertyVetoException;
-import java.beans.VetoableChangeListener;
-
-/**
- * Mock of VetoableChangeListener
- */
-public class MockVetoableChangeListener implements VetoableChangeListener {
-
- public PropertyChangeEvent lastEvent;
-
- public void clearLastEvent() {
- lastEvent = null;
- }
-
- /*
- * (non-Javadoc)
- *
- * @see java.beans.VetoableChangeListener#vetoableChange(java.beans.PropertyChangeEvent)
- */
- public void vetoableChange(PropertyChangeEvent evt)
- throws PropertyVetoException {
- lastEvent = evt;
- }
-
-}
+/* 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 org.apache.harmony.beans.tests.java.beans.beancontext.mock;
+
+import java.beans.PropertyChangeEvent;
+import java.beans.PropertyVetoException;
+import java.beans.VetoableChangeListener;
+
+/**
+ * Mock of VetoableChangeListener
+ */
+public class MockVetoableChangeListener implements VetoableChangeListener {
+
+ public PropertyChangeEvent lastEvent;
+
+ public void clearLastEvent() {
+ lastEvent = null;
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see java.beans.VetoableChangeListener#vetoableChange(java.beans.PropertyChangeEvent)
+ */
+ public void vetoableChange(PropertyChangeEvent evt)
+ throws PropertyVetoException {
+ lastEvent = evt;
+ }
+
+}