@@ -72,6 +72,7 @@ public void defaults() throws Exception {
7272 .withValue ("application.name" , fromAnyRef ("jdbctest" ))
7373 .withValue ("application.tmpdir" , fromAnyRef ("target" ))
7474 .withValue ("application.charset" , fromAnyRef ("UTF-8" ))
75+ .withValue ("runtime.processors-x2" , fromAnyRef ("4" ))
7576 .resolve ();
7677
7778 new MockUnit (Env .class , Binder .class , HibernateEntityManagerFactory .class )
@@ -96,6 +97,7 @@ public void prod() throws Exception {
9697 .withValue ("application.name" , fromAnyRef ("jdbctest" ))
9798 .withValue ("application.tmpdir" , fromAnyRef ("target" ))
9899 .withValue ("application.charset" , fromAnyRef ("UTF-8" ))
100+ .withValue ("runtime.processors-x2" , fromAnyRef ("4" ))
99101 .resolve ();
100102
101103 new MockUnit (Env .class , Binder .class , HibernateEntityManagerFactory .class )
@@ -120,6 +122,7 @@ public void onStop() throws Exception {
120122 .withValue ("application.name" , fromAnyRef ("jdbctest" ))
121123 .withValue ("application.tmpdir" , fromAnyRef ("target" ))
122124 .withValue ("application.charset" , fromAnyRef ("UTF-8" ))
125+ .withValue ("runtime.processors-x2" , fromAnyRef ("4" ))
123126 .resolve ();
124127
125128 new MockUnit (Env .class , Binder .class , HibernateEntityManagerFactory .class )
@@ -151,6 +154,7 @@ public void defaultsScan() throws Exception {
151154 .withValue ("application.name" , fromAnyRef ("jdbctest" ))
152155 .withValue ("application.tmpdir" , fromAnyRef ("target" ))
153156 .withValue ("application.charset" , fromAnyRef ("UTF-8" ))
157+ .withValue ("runtime.processors-x2" , fromAnyRef ("4" ))
154158 .resolve ();
155159
156160 new MockUnit (Env .class , Binder .class , HibernateEntityManagerFactory .class )
@@ -312,6 +316,7 @@ private Block props(final String dataSourceClassName, final String url, final St
312316 }
313317 expect (properties .remove ("dataSource.dataSourceClassName" )).andReturn (dataSourceClassName );
314318 expect (properties .setProperty ("poolName" , name )).andReturn (null );
319+ expect (properties .setProperty ("maximumPoolSize" , "4" )).andReturn (null );
315320
316321 unit .registerMock (Properties .class , properties );
317322 };
0 commit comments