[java-opensaml COMMIT] /trunk/opensaml-storage-impl/src/test/java/org/opensaml/storage/impl/JPAStorageServiceTest.java

noreply at shibboleth.net noreply at shibboleth.net
Tue Nov 18 23:41:00 EST 2014


Author: scantor
Date: Tue Nov 18 23:40:59 2014
New Revision: 4156

URL: http://svn.shibboleth.net/view/java-opensaml?rev=4156&view=rev
Log:
Add support for BeanFactoryPostProcessor injection to SpringSupport and Service APIs.

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=4156&r1=4155&r2=4156&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 Tue Nov 18 23:40:59 2014
@@ -32,6 +32,7 @@
 import org.opensaml.storage.StorageService;
 import org.opensaml.storage.StorageServiceTest;
 import org.springframework.beans.factory.FactoryBean;
+import org.springframework.beans.factory.config.BeanFactoryPostProcessor;
 import org.springframework.beans.factory.config.BeanPostProcessor;
 import org.springframework.context.ApplicationContextInitializer;
 import org.springframework.context.support.GenericApplicationContext;
@@ -79,8 +80,9 @@
     {
         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(),
-                Collections.<ApplicationContextInitializer>emptyList(), null);
+                Collections.singletonList(resource), Collections.<BeanFactoryPostProcessor>emptyList(),
+                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