diff --git a/org.springframework.context/src/test/java/org/springframework/beans/factory/xml/MapAndSet.java b/org.springframework.context/src/test/java/org/springframework/beans/factory/xml/MapAndSet.java
deleted file mode 100644
index 1d059ea569..0000000000
--- a/org.springframework.context/src/test/java/org/springframework/beans/factory/xml/MapAndSet.java
+++ /dev/null
@@ -1,39 +0,0 @@
-/*
- * Copyright 2002-2006 the original author or authors.
- *
- * 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.springframework.beans.factory.xml;
-
-import java.util.Map;
-import java.util.Set;
-
-/**
- * @author Chris Beams
- */
-public class MapAndSet {
-
- private Object obj;
-
- public MapAndSet(Map map) {
- this.obj = map;
- }
-
- public MapAndSet(Set set) {
- this.obj = set;
- }
-
- public Object getObject() {
- return obj;
- }
-}
diff --git a/org.springframework.context/src/test/java/org/springframework/beans/factory/xml/MixedCollectionBean.java b/org.springframework.context/src/test/java/org/springframework/beans/factory/xml/MixedCollectionBean.java
deleted file mode 100644
index 8ed5f2517e..0000000000
--- a/org.springframework.context/src/test/java/org/springframework/beans/factory/xml/MixedCollectionBean.java
+++ /dev/null
@@ -1,41 +0,0 @@
-/*
- * Copyright 2002-2006 the original author or authors.
- *
- * 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.springframework.beans.factory.xml;
-
-import java.util.Collection;
-
-/**
- * Bean that exposes a simple property that can be set
- * to a mix of references and individual values.
- *
- * @author Rod Johnson
- * @since 27.05.2003
- */
-public class MixedCollectionBean {
-
- private Collection jumble;
-
-
- public void setJumble(Collection jumble) {
- this.jumble = jumble;
- }
-
- public Collection getJumble() {
- return jumble;
- }
-
-}
diff --git a/org.springframework.context/src/test/java/org/springframework/beans/factory/xml/test.xml b/org.springframework.context/src/test/java/org/springframework/beans/factory/xml/test.xml
deleted file mode 100644
index e67e310136..0000000000
--- a/org.springframework.context/src/test/java/org/springframework/beans/factory/xml/test.xml
+++ /dev/null
@@ -1,127 +0,0 @@
-
-
-
-
-
-
-
- I have no properties and I'm happy without them.
-
-
-
-
-
- aliased
-
-
-
-
-
-
-
- aliased
-
-
-
-
-
- aliased
-
-
-
-
-
-
-
-
-
-
-
-
-
- Rod
- 31
-
-
-
-
-
- Roderick
-
-
-
-
- Kerry
- 34
-
-
-
-
-
- Kathy
- 28
-
-
-
-
- typeMismatch
- 34x
-
-
-
-
-
-
-
- true
-
-
-
- true
-
-
-
-
-
-
-
- false
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- listenerVeto
- 66
-
-
-
-
-
-
-
diff --git a/org.springframework.context/src/test/java/org/springframework/context/access/ContextBeanFactoryReferenceTests.java b/org.springframework.context/src/test/java/org/springframework/context/access/ContextBeanFactoryReferenceTests.java
index 11d79f4e81..ca79f530b3 100644
--- a/org.springframework.context/src/test/java/org/springframework/context/access/ContextBeanFactoryReferenceTests.java
+++ b/org.springframework.context/src/test/java/org/springframework/context/access/ContextBeanFactoryReferenceTests.java
@@ -16,24 +16,26 @@
package org.springframework.context.access;
-import junit.framework.TestCase;
+import static org.easymock.EasyMock.*;
+import static org.junit.Assert.assertNotNull;
-import org.easymock.MockControl;
+import org.junit.Test;
import org.springframework.context.ConfigurableApplicationContext;
/**
- * Unit test for ContextBeanFactoryReference
+ * Unit test for {@link ContextBeanFactoryReference}
*
* @author Colin Sampaleanu
+ * @author Chris Beams
*/
-public class ContextBeanFactoryReferenceTests extends TestCase {
+public class ContextBeanFactoryReferenceTests {
+ @Test
public void testAllOperations() {
- MockControl control = MockControl.createControl(ConfigurableApplicationContext.class);
- ConfigurableApplicationContext ctx = (ConfigurableApplicationContext) control.getMock();
+ ConfigurableApplicationContext ctx = createMock(ConfigurableApplicationContext.class);
ctx.close();
- control.replay();
+ replay(ctx);
ContextBeanFactoryReference bfr = new ContextBeanFactoryReference(ctx);
@@ -47,6 +49,6 @@ public class ContextBeanFactoryReferenceTests extends TestCase {
// expected
}
- control.verify();
+ verify(ctx);
}
}
diff --git a/org.springframework.context/src/test/java/org/springframework/beans/factory/xml/collections.xml b/org.springframework.context/src/test/java/org/springframework/context/access/ContextJndiBeanFactoryLocatorTests-collections.xml
similarity index 97%
rename from org.springframework.context/src/test/java/org/springframework/beans/factory/xml/collections.xml
rename to org.springframework.context/src/test/java/org/springframework/context/access/ContextJndiBeanFactoryLocatorTests-collections.xml
index f2fd356460..30b7c590c8 100644
--- a/org.springframework.context/src/test/java/org/springframework/beans/factory/xml/collections.xml
+++ b/org.springframework.context/src/test/java/org/springframework/context/access/ContextJndiBeanFactoryLocatorTests-collections.xml
@@ -74,7 +74,7 @@
-
+
@@ -85,7 +85,7 @@
-
+
@@ -352,7 +352,7 @@
-
+