Repository: deltaspike
Updated Branches:
  refs/heads/master c7b5471c2 -> 618dd99b6


DELTASPIKE-1281 - Updating test.


Project: http://git-wip-us.apache.org/repos/asf/deltaspike/repo
Commit: http://git-wip-us.apache.org/repos/asf/deltaspike/commit/618dd99b
Tree: http://git-wip-us.apache.org/repos/asf/deltaspike/tree/618dd99b
Diff: http://git-wip-us.apache.org/repos/asf/deltaspike/diff/618dd99b

Branch: refs/heads/master
Commit: 618dd99b6861c80250d2724208e77807c14b5f32
Parents: c7b5471
Author: John D. Ament <johndam...@apache.org>
Authored: Sat Aug 12 19:06:10 2017 -0400
Committer: John D. Ament <johndam...@apache.org>
Committed: Sat Aug 12 19:06:10 2017 -0400

----------------------------------------------------------------------
 .../api/entitymanager/PersistenceConfigurationProviderTest.java  | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltaspike/blob/618dd99b/deltaspike/modules/jpa/impl/src/test/java/org/apache/deltaspike/test/jpa/api/entitymanager/PersistenceConfigurationProviderTest.java
----------------------------------------------------------------------
diff --git 
a/deltaspike/modules/jpa/impl/src/test/java/org/apache/deltaspike/test/jpa/api/entitymanager/PersistenceConfigurationProviderTest.java
 
b/deltaspike/modules/jpa/impl/src/test/java/org/apache/deltaspike/test/jpa/api/entitymanager/PersistenceConfigurationProviderTest.java
index ff69d5f..2bd6f9d 100644
--- 
a/deltaspike/modules/jpa/impl/src/test/java/org/apache/deltaspike/test/jpa/api/entitymanager/PersistenceConfigurationProviderTest.java
+++ 
b/deltaspike/modules/jpa/impl/src/test/java/org/apache/deltaspike/test/jpa/api/entitymanager/PersistenceConfigurationProviderTest.java
@@ -23,6 +23,7 @@ import javax.persistence.EntityManager;
 import javax.persistence.spi.PersistenceProviderResolverHolder;
 import java.util.Properties;
 
+import org.apache.deltaspike.core.api.provider.BeanManagerProvider;
 import 
org.apache.deltaspike.jpa.spi.entitymanager.PersistenceConfigurationProvider;
 import org.apache.deltaspike.test.category.SeCategory;
 import org.apache.deltaspike.test.jpa.api.shared.TestEntityManager;
@@ -69,7 +70,8 @@ public class PersistenceConfigurationProviderTest
     public void testPersistenceConfigurationProvider()
     {
         Properties myUnitConfig = 
persistenceConfigurationProvider.getEntityManagerFactoryConfiguration("MyUnit");
-        Assert.assertEquals(3, myUnitConfig.size());
+        Assert.assertEquals(4, myUnitConfig.size());
+        
Assert.assertEquals(BeanManagerProvider.getInstance().getBeanManager(), 
myUnitConfig.get("javax.persistence.bean.manager"));
         Assert.assertEquals("blub", 
myUnitConfig.get("javax.persistence.jdbc.password"));
         Assert.assertEquals("sa", 
myUnitConfig.get("javax.persistence.jdbc.user"));
         Assert.assertEquals("some.jdbc.Driver", 
myUnitConfig.get("javax.persistence.jdbc.driver"));

Reply via email to