aboutsummaryrefslogtreecommitdiff
path: root/id/server/idserverlib/src/test/java
diff options
context:
space:
mode:
authorThomas Lenz <tlenz@iaik.tugraz.at>2015-07-20 13:58:32 +0200
committerThomas Lenz <tlenz@iaik.tugraz.at>2015-07-20 13:58:32 +0200
commit7b6f65663145b228991794d6390567fbb84dc9c0 (patch)
tree5b0cd320f861f2280bd8649b8164866af60616d7 /id/server/idserverlib/src/test/java
parent77a575c0489e3739c5b6184aa5a7d46c542c35f5 (diff)
downloadmoa-id-spss-7b6f65663145b228991794d6390567fbb84dc9c0.tar.gz
moa-id-spss-7b6f65663145b228991794d6390567fbb84dc9c0.tar.bz2
moa-id-spss-7b6f65663145b228991794d6390567fbb84dc9c0.zip
remove deprecated MOA-ID 2.x configuration DAO functionality
Diffstat (limited to 'id/server/idserverlib/src/test/java')
-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();
}
}