summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCristiano Gavião2012-02-23 10:19:48 (EST)
committerCristiano Gavião2012-02-23 10:19:48 (EST)
commit33277f8981ba9a82767527cc14190a5811492490 (patch)
tree362811b77d16887d843131193db31aa127f5702d
parent4a6330e50d4dcce1e8541935ffef3f710ef86333 (diff)
downloadorg.eclipse.gemini.jpa-33277f8981ba9a82767527cc14190a5811492490.zip
org.eclipse.gemini.jpa-33277f8981ba9a82767527cc14190a5811492490.tar.gz
org.eclipse.gemini.jpa-33277f8981ba9a82767527cc14190a5811492490.tar.bz2
cosmetic changes to avoid warnings on ide.
-rw-r--r--org.eclipse.gemini.jpa.tests/src/org/eclipse/gemini/jpa/tests/Activator.java17
-rw-r--r--org.eclipse.gemini.jpa.tests/src/org/eclipse/gemini/jpa/tests/JpaTest.java1
-rw-r--r--org.eclipse.gemini.jpa.tests/src/org/eclipse/gemini/jpa/tests/TestEMFBuilderExternalDataSource.java5
3 files changed, 10 insertions, 13 deletions
diff --git a/org.eclipse.gemini.jpa.tests/src/org/eclipse/gemini/jpa/tests/Activator.java b/org.eclipse.gemini.jpa.tests/src/org/eclipse/gemini/jpa/tests/Activator.java
index 388e2fe..de7ec5e 100644
--- a/org.eclipse.gemini.jpa.tests/src/org/eclipse/gemini/jpa/tests/Activator.java
+++ b/org.eclipse.gemini.jpa.tests/src/org/eclipse/gemini/jpa/tests/Activator.java
@@ -15,35 +15,30 @@
package org.eclipse.gemini.jpa.tests;
import java.util.HashMap;
-import java.util.HashSet;
import java.util.Map;
import java.util.Set;
-import java.util.Map.Entry;
+
+import javax.persistence.EntityManagerFactory;
import org.junit.runner.JUnitCore;
import org.junit.runner.Result;
import org.junit.runner.notification.Failure;
-
-import test.TestState;
-
-import org.osgi.framework.Bundle;
import org.osgi.framework.BundleActivator;
import org.osgi.framework.BundleContext;
import org.osgi.framework.ServiceReference;
-
+import org.osgi.service.jdbc.DataSourceFactory;
+import org.osgi.service.jpa.EntityManagerFactoryBuilder;
import org.osgi.util.tracker.ServiceTracker;
import org.osgi.util.tracker.ServiceTrackerCustomizer;
-import javax.persistence.EntityManagerFactory;
-
-import org.osgi.service.jdbc.DataSourceFactory;
-import org.osgi.service.jpa.EntityManagerFactoryBuilder;
+import test.TestState;
/**
* Activator to start tests when relevant service becomes available
*
* @author mkeith
*/
+@SuppressWarnings({"unchecked","rawtypes"})
public class Activator implements BundleActivator, ServiceTrackerCustomizer {
BundleContext ctx;
diff --git a/org.eclipse.gemini.jpa.tests/src/org/eclipse/gemini/jpa/tests/JpaTest.java b/org.eclipse.gemini.jpa.tests/src/org/eclipse/gemini/jpa/tests/JpaTest.java
index 65d3af1..f8190fb 100644
--- a/org.eclipse.gemini.jpa.tests/src/org/eclipse/gemini/jpa/tests/JpaTest.java
+++ b/org.eclipse.gemini.jpa.tests/src/org/eclipse/gemini/jpa/tests/JpaTest.java
@@ -35,6 +35,7 @@ import model.account.*;
*
* @author mkeith
*/
+@SuppressWarnings({"unchecked","rawtypes"})
public abstract class JpaTest {
public static BundleContext context;
diff --git a/org.eclipse.gemini.jpa.tests/src/org/eclipse/gemini/jpa/tests/TestEMFBuilderExternalDataSource.java b/org.eclipse.gemini.jpa.tests/src/org/eclipse/gemini/jpa/tests/TestEMFBuilderExternalDataSource.java
index 5e38d21..e8f3ea5 100644
--- a/org.eclipse.gemini.jpa.tests/src/org/eclipse/gemini/jpa/tests/TestEMFBuilderExternalDataSource.java
+++ b/org.eclipse.gemini.jpa.tests/src/org/eclipse/gemini/jpa/tests/TestEMFBuilderExternalDataSource.java
@@ -35,6 +35,7 @@ import org.junit.*;
*
* @author mkeith
*/
+@SuppressWarnings({"unchecked","rawtypes"})
public class TestEMFBuilderExternalDataSource extends JpaTest {
public static final String TEST_NAME = "TestEMFBuilderExternalDataSource";
@@ -42,13 +43,13 @@ public class TestEMFBuilderExternalDataSource extends JpaTest {
public static EntityManagerFactory emf;
- @BeforeClass
+ @BeforeClass
public static void classSetUp() {
slog(TEST_NAME, "In setup");
EntityManagerFactoryBuilder emfb = lookupEntityManagerFactoryBuilder(TEST_NAME, PERSISTENCE_UNIT_UNDER_TEST);
DataSource ds = null;
try {
- ServiceReference[] refs = context.getServiceReferences(
+ ServiceReference[] refs = context.getServiceReferences(
DataSourceFactory.class.getName(), "(osgi.jdbc.driver.class=" + JDBC_TEST_DRIVER + ")");
if (refs == null) {
throw new RuntimeException("Failed looking up driver in registry");