[java-opensaml COMMIT] /trunk/opensaml-storage-impl/src/test/java/org/opensaml/storage/impl/JPAStorageServiceTest.java
noreply at shibboleth.net
noreply at shibboleth.net
Wed Jul 23 12:29:52 EDT 2014
Author: scantor
Date: Wed Jul 23 12:29:52 2014
New Revision: 3976
URL: http://svn.shibboleth.net/view/java-opensaml?rev=3976&view=rev
Log:
Fix test for API change.
Modified:
trunk/opensaml-storage-impl/src/test/java/org/opensaml/storage/impl/JPAStorageServiceTest.java
Modified: trunk/opensaml-storage-impl/src/test/java/org/opensaml/storage/impl/JPAStorageServiceTest.java
URL: http://svn.shibboleth.net/view/java-opensaml/trunk/opensaml-storage-impl/src/test/java/org/opensaml/storage/impl/JPAStorageServiceTest.java?rev=3976&r1=3975&r2=3976&view=diff
==============================================================================
--- trunk/opensaml-storage-impl/src/test/java/org/opensaml/storage/impl/JPAStorageServiceTest.java (original)
+++ trunk/opensaml-storage-impl/src/test/java/org/opensaml/storage/impl/JPAStorageServiceTest.java Wed Jul 23 12:29:52 2014
@@ -33,6 +33,7 @@
import org.opensaml.storage.StorageServiceTest;
import org.springframework.beans.factory.FactoryBean;
import org.springframework.beans.factory.config.BeanPostProcessor;
+import org.springframework.context.ApplicationContextInitializer;
import org.springframework.context.support.GenericApplicationContext;
import org.springframework.core.io.ClassPathResource;
import org.springframework.core.io.Resource;
@@ -77,7 +78,9 @@
private EntityManagerFactory createEntityManagerFactory() throws ComponentInitializationException
{
final Resource resource = new ClassPathResource("/org/opensaml/storage/impl/jpa-spring-context.xml");
- final GenericApplicationContext context = SpringSupport.newContext("JPAStorageService", Collections.singletonList(resource), Collections.<BeanPostProcessor>emptyList(), null);
+ final GenericApplicationContext context = SpringSupport.newContext("JPAStorageService",
+ Collections.singletonList(resource), Collections.<BeanPostProcessor>emptyList(),
+ Collections.<ApplicationContextInitializer>emptyList(), null);
FactoryBean<EntityManagerFactory> factoryBean = context.getBean(org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.class);
try {
return factoryBean.getObject();
More information about the commits
mailing list