Makes tests compatible with Java 5.
git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1467168 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/ipojo/runtime/core/src/test/java/org/apache/felix/ipojo/handlers/dependency/SmartProxyTest.java b/ipojo/runtime/core/src/test/java/org/apache/felix/ipojo/handlers/dependency/SmartProxyTest.java
index c886fc6..5d269b5 100644
--- a/ipojo/runtime/core/src/test/java/org/apache/felix/ipojo/handlers/dependency/SmartProxyTest.java
+++ b/ipojo/runtime/core/src/test/java/org/apache/felix/ipojo/handlers/dependency/SmartProxyTest.java
@@ -18,12 +18,8 @@
*/
package org.apache.felix.ipojo.handlers.dependency;
-import java.util.ArrayList;
-import java.util.List;
-
import junit.framework.Assert;
import junit.framework.TestCase;
-
import org.apache.felix.ipojo.ComponentFactory;
import org.apache.felix.ipojo.InstanceManager;
import org.apache.felix.ipojo.test.MockBundle;
@@ -32,6 +28,9 @@
import org.osgi.framework.Bundle;
import org.osgi.framework.BundleContext;
+import java.util.ArrayList;
+import java.util.List;
+
public class SmartProxyTest extends TestCase {
public void setUp() {
@@ -122,12 +121,12 @@
dependency.stop();
// Try with javax.sql.CommonDataSource
- dependency = new Dependency(handler, "a_field", javax.sql.CommonDataSource.class, null, false, false, false,
+ dependency = new Dependency(handler, "a_field", javax.sql.DataSource.class, null, false, false, false,
true, "dep", context, Dependency.DYNAMIC_BINDING_POLICY, null, null);
dependency.start();
// OK
Assert.assertNotNull(dependency.onGet(new Object(), "a_field", null));
- Assert.assertTrue(dependency.onGet(new Object(), "a_field", null) instanceof javax.sql.CommonDataSource);
+ Assert.assertTrue(dependency.onGet(new Object(), "a_field", null) instanceof javax.sql.DataSource);
}
}