aboutsummaryrefslogtreecommitdiff
path: root/id/server/idserverlib/src/test/java/at/gv
diff options
context:
space:
mode:
Diffstat (limited to 'id/server/idserverlib/src/test/java/at/gv')
-rw-r--r--id/server/idserverlib/src/test/java/at/gv/egovernment/moa/id/process/spring/test/SpringExpressionAwareProcessEngineTest.java6
-rw-r--r--id/server/idserverlib/src/test/java/at/gv/egovernment/moa/id/process/test/ProcessEngineTest.java6
2 files changed, 6 insertions, 6 deletions
diff --git a/id/server/idserverlib/src/test/java/at/gv/egovernment/moa/id/process/spring/test/SpringExpressionAwareProcessEngineTest.java b/id/server/idserverlib/src/test/java/at/gv/egovernment/moa/id/process/spring/test/SpringExpressionAwareProcessEngineTest.java
index 5355f14d3..7288ae2b2 100644
--- a/id/server/idserverlib/src/test/java/at/gv/egovernment/moa/id/process/spring/test/SpringExpressionAwareProcessEngineTest.java
+++ b/id/server/idserverlib/src/test/java/at/gv/egovernment/moa/id/process/spring/test/SpringExpressionAwareProcessEngineTest.java
@@ -14,7 +14,7 @@ import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
-import at.gv.egovernment.moa.id.commons.db.ConfigurationDBUtils;
+
import at.gv.egovernment.moa.id.commons.db.MOASessionDBUtils;
import at.gv.egovernment.moa.id.commons.db.dao.session.InterfederationSessionStore;
import at.gv.egovernment.moa.id.commons.db.ex.MOADatabaseException;
@@ -62,13 +62,13 @@ public class SpringExpressionAwareProcessEngineTest {
props.load(in);
try {
- ConfigurationDBUtils.initHibernate(props);
+ //ConfigurationDBUtils.initHibernate(props);
Configuration config = new Configuration();
config.addProperties(props);
config.addAnnotatedClass(ProcessInstanceStore.class);
config.addAnnotatedClass(InterfederationSessionStore.class);
MOASessionDBUtils.initHibernate(config, props);
- } catch (MOADatabaseException e) {
+ } catch (Exception e) {
e.printStackTrace();
}
}
diff --git a/id/server/idserverlib/src/test/java/at/gv/egovernment/moa/id/process/test/ProcessEngineTest.java b/id/server/idserverlib/src/test/java/at/gv/egovernment/moa/id/process/test/ProcessEngineTest.java
index 4f24468fe..fa9f2ad06 100644
--- a/id/server/idserverlib/src/test/java/at/gv/egovernment/moa/id/process/test/ProcessEngineTest.java
+++ b/id/server/idserverlib/src/test/java/at/gv/egovernment/moa/id/process/test/ProcessEngineTest.java
@@ -11,7 +11,7 @@ import org.hibernate.cfg.Configuration;
import org.junit.BeforeClass;
import org.junit.Test;
-import at.gv.egovernment.moa.id.commons.db.ConfigurationDBUtils;
+
import at.gv.egovernment.moa.id.commons.db.MOASessionDBUtils;
import at.gv.egovernment.moa.id.commons.db.dao.session.InterfederationSessionStore;
import at.gv.egovernment.moa.id.commons.db.ex.MOADatabaseException;
@@ -53,13 +53,13 @@ public class ProcessEngineTest {
props.load(in);
try {
- ConfigurationDBUtils.initHibernate(props);
+ //ConfigurationDBUtils.initHibernate(props);
Configuration config = new Configuration();
config.addProperties(props);
config.addAnnotatedClass(ProcessInstanceStore.class);
config.addAnnotatedClass(InterfederationSessionStore.class);
MOASessionDBUtils.initHibernate(config, props);
- } catch (MOADatabaseException e) {
+ } catch (Exception e) {
e.printStackTrace();
}
}