You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@aries.apache.org by ti...@apache.org on 2010/02/16 18:24:49 UTC
svn commit: r910605 - in /incubator/aries/trunk/jpa/jpa-container-itest:
pom.xml
src/test/java/org/apache/aries/jpa/container/itest/JPAContainerTest.java
Author: timothyjward
Date: Tue Feb 16 17:24:49 2010
New Revision: 910605
URL: http://svn.apache.org/viewvc?rev=910605&view=rev
Log:
ARIES-164 : Remove additional PersistenceProvider registrations from Aries
Modified:
incubator/aries/trunk/jpa/jpa-container-itest/pom.xml
incubator/aries/trunk/jpa/jpa-container-itest/src/test/java/org/apache/aries/jpa/container/itest/JPAContainerTest.java
Modified: incubator/aries/trunk/jpa/jpa-container-itest/pom.xml
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/jpa/jpa-container-itest/pom.xml?rev=910605&r1=910604&r2=910605&view=diff
==============================================================================
--- incubator/aries/trunk/jpa/jpa-container-itest/pom.xml (original)
+++ incubator/aries/trunk/jpa/jpa-container-itest/pom.xml Tue Feb 16 17:24:49 2010
@@ -129,7 +129,7 @@
<dependency>
<groupId>org.apache.openjpa</groupId>
<artifactId>openjpa</artifactId>
- <version>2.0.0-beta</version>
+ <version>2.0.0-SNAPSHOT</version>
<scope>test</scope>
</dependency>
<dependency>
@@ -211,4 +211,4 @@
</build>
</profile>
</profiles>
-</project>
\ No newline at end of file
+</project>
Modified: incubator/aries/trunk/jpa/jpa-container-itest/src/test/java/org/apache/aries/jpa/container/itest/JPAContainerTest.java
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/jpa/jpa-container-itest/src/test/java/org/apache/aries/jpa/container/itest/JPAContainerTest.java?rev=910605&r1=910604&r2=910605&view=diff
==============================================================================
--- incubator/aries/trunk/jpa/jpa-container-itest/src/test/java/org/apache/aries/jpa/container/itest/JPAContainerTest.java (original)
+++ incubator/aries/trunk/jpa/jpa-container-itest/src/test/java/org/apache/aries/jpa/container/itest/JPAContainerTest.java Tue Feb 16 17:24:49 2010
@@ -56,18 +56,6 @@
@Before
public void setupApplication() throws Exception
{
- Bundle openJPA = getBundle("org.apache.openjpa");
-
- Class<? extends PersistenceProvider> clz = openJPA.loadClass("org.apache.openjpa.persistence.PersistenceProviderImpl");
-
- PersistenceProvider provider = clz.newInstance();
-
- Hashtable props = new Hashtable();
-
- props.put("javax.persistence.provider", "org.apache.openjpa.persistence.PersistenceProviderImpl");
-
- openJPA.getBundleContext().registerService(PersistenceProvider.class.getName(), provider, props);
-
//Wait for everything to be started then refresh the app
Thread.sleep(3000);
@@ -77,7 +65,6 @@
pa.refreshPackages(new Bundle[] {app});
}
- //This test will run once there is an updated OpenJPA bundle that uses the latest JPA API
@Test
public void findEntityManagerFactory() throws Exception {
EntityManagerFactory emf = getOsgiService(EntityManagerFactory.class, "(osgi.unit.name=test-unit)", DEFAULT_TIMEOUT);