aboutsummaryrefslogtreecommitdiff
path: root/id/server/modules/moa-id-module-sl20_authentication/src/test/java
diff options
context:
space:
mode:
authorThomas Lenz <tlenz@iaik.tugraz.at>2018-06-06 11:22:42 +0200
committerThomas Lenz <tlenz@iaik.tugraz.at>2018-06-06 11:22:42 +0200
commit2376b4247adab09ad5e6991ba2a1511a8683bda7 (patch)
treeef2aa12eeefd21b64d85f1d10b451069f18357a4 /id/server/modules/moa-id-module-sl20_authentication/src/test/java
parentac21c6be50070c34dd20abe07e0f95ff33751804 (diff)
downloadmoa-id-spss-2376b4247adab09ad5e6991ba2a1511a8683bda7.tar.gz
moa-id-spss-2376b4247adab09ad5e6991ba2a1511a8683bda7.tar.bz2
moa-id-spss-2376b4247adab09ad5e6991ba2a1511a8683bda7.zip
some small update
Diffstat (limited to 'id/server/modules/moa-id-module-sl20_authentication/src/test/java')
-rw-r--r--id/server/modules/moa-id-module-sl20_authentication/src/test/java/at/gv/egovernment/moa/id/auth/modules/sl20_auth/EIDDataVerifier_ATrust.java8
-rw-r--r--id/server/modules/moa-id-module-sl20_authentication/src/test/java/at/gv/egovernment/moa/id/auth/modules/sl20_auth/EIDDataVerifier_OwnTest.java5
2 files changed, 10 insertions, 3 deletions
diff --git a/id/server/modules/moa-id-module-sl20_authentication/src/test/java/at/gv/egovernment/moa/id/auth/modules/sl20_auth/EIDDataVerifier_ATrust.java b/id/server/modules/moa-id-module-sl20_authentication/src/test/java/at/gv/egovernment/moa/id/auth/modules/sl20_auth/EIDDataVerifier_ATrust.java
index 49c11ea05..c3c10dd16 100644
--- a/id/server/modules/moa-id-module-sl20_authentication/src/test/java/at/gv/egovernment/moa/id/auth/modules/sl20_auth/EIDDataVerifier_ATrust.java
+++ b/id/server/modules/moa-id-module-sl20_authentication/src/test/java/at/gv/egovernment/moa/id/auth/modules/sl20_auth/EIDDataVerifier_ATrust.java
@@ -6,6 +6,8 @@ import java.io.InputStreamReader;
import org.apache.commons.io.IOUtils;
import org.junit.Before;
import org.junit.runner.RunWith;
+import org.opensaml.DefaultBootstrap;
+import org.opensaml.xml.ConfigurationException;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
@@ -20,7 +22,7 @@ import at.gv.egovernment.moa.id.auth.modules.sl20_auth.sl20.SL20JSONExtractorUti
public class EIDDataVerifier_ATrust extends eIDDataVerifierTest {
@Before
- public void init() throws SLCommandoParserException, IOException {
+ public void init() throws SLCommandoParserException, IOException, ConfigurationException {
String eIDDataString = IOUtils.toString(new InputStreamReader(this.getClass().getResourceAsStream("/tests/eIDdata_atrust.json")));
JsonParser jsonParser = new JsonParser();
JsonObject qualeIDResult = jsonParser.parse(eIDDataString).getAsJsonObject();
@@ -32,11 +34,13 @@ public class EIDDataVerifier_ATrust extends eIDDataVerifierTest {
eIDData = SL20JSONExtractorUtils.getMapOfStringElements(result);
if (eIDData == null || eIDData.isEmpty())
throw new SLCommandoParserException("Can not load eID data");
+
+ DefaultBootstrap.bootstrap();
}
@Override
protected String getSl20ReqId() {
- return "_28ab8536d068a153e1a";
+ return "_ae0f0cbf2997125832e80b3a0082848a";
}
}
diff --git a/id/server/modules/moa-id-module-sl20_authentication/src/test/java/at/gv/egovernment/moa/id/auth/modules/sl20_auth/EIDDataVerifier_OwnTest.java b/id/server/modules/moa-id-module-sl20_authentication/src/test/java/at/gv/egovernment/moa/id/auth/modules/sl20_auth/EIDDataVerifier_OwnTest.java
index 65460439e..e56d5834a 100644
--- a/id/server/modules/moa-id-module-sl20_authentication/src/test/java/at/gv/egovernment/moa/id/auth/modules/sl20_auth/EIDDataVerifier_OwnTest.java
+++ b/id/server/modules/moa-id-module-sl20_authentication/src/test/java/at/gv/egovernment/moa/id/auth/modules/sl20_auth/EIDDataVerifier_OwnTest.java
@@ -6,6 +6,8 @@ import java.io.InputStreamReader;
import org.apache.commons.io.IOUtils;
import org.junit.Before;
import org.junit.runner.RunWith;
+import org.opensaml.DefaultBootstrap;
+import org.opensaml.xml.ConfigurationException;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
@@ -21,7 +23,7 @@ import at.gv.egovernment.moa.id.auth.modules.sl20_auth.sl20.SL20JSONExtractorUti
public class EIDDataVerifier_OwnTest extends eIDDataVerifierTest {
@Before
- public void init() throws SLCommandoParserException, IOException {
+ public void init() throws SLCommandoParserException, IOException, ConfigurationException {
String eIDDataString = IOUtils.toString(new InputStreamReader(this.getClass().getResourceAsStream("/tests/eIDdata_own_test.json")));
JsonParser jsonParser = new JsonParser();
JsonElement payLoad = jsonParser.parse(eIDDataString).getAsJsonObject();
@@ -31,6 +33,7 @@ public class EIDDataVerifier_OwnTest extends eIDDataVerifierTest {
if (eIDData == null || eIDData.isEmpty())
throw new SLCommandoParserException("Can not load eID data");
+ DefaultBootstrap.bootstrap();
}
@Override