summaryrefslogtreecommitdiff
path: root/eaaf_core
diff options
context:
space:
mode:
authorThomas Lenz <thomas.lenz@egiz.gv.at>2020-08-14 13:41:47 +0200
committerThomas Lenz <thomas.lenz@egiz.gv.at>2020-08-14 13:41:47 +0200
commit4d49513b7c28197b6c767e79e510db18ba73acb5 (patch)
tree6b773d7f095df26e478a34b33381a1c4b165979d /eaaf_core
parent21c2873c14c266a42fc639697fa2f8772e3d1fb1 (diff)
parentc1a24b6ae3012573453440401081f1650b010706 (diff)
downloadEAAF-Components-4d49513b7c28197b6c767e79e510db18ba73acb5.tar.gz
EAAF-Components-4d49513b7c28197b6c767e79e510db18ba73acb5.tar.bz2
EAAF-Components-4d49513b7c28197b6c767e79e510db18ba73acb5.zip
Merge branch 'nightlyBuild' of gitlab.iaik.tugraz.at:egiz/eaaf_components into nightlyBuild
Diffstat (limited to 'eaaf_core')
-rw-r--r--eaaf_core/src/test/java/at/gv/egiz/eaaf/core/impl/idp/auth/attributes/BpkAttributeBuilderTest.java16
1 files changed, 16 insertions, 0 deletions
diff --git a/eaaf_core/src/test/java/at/gv/egiz/eaaf/core/impl/idp/auth/attributes/BpkAttributeBuilderTest.java b/eaaf_core/src/test/java/at/gv/egiz/eaaf/core/impl/idp/auth/attributes/BpkAttributeBuilderTest.java
index 1ad75abc..0619d4d6 100644
--- a/eaaf_core/src/test/java/at/gv/egiz/eaaf/core/impl/idp/auth/attributes/BpkAttributeBuilderTest.java
+++ b/eaaf_core/src/test/java/at/gv/egiz/eaaf/core/impl/idp/auth/attributes/BpkAttributeBuilderTest.java
@@ -9,6 +9,7 @@ import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import at.gv.egiz.eaaf.core.api.data.EaafConstants;
import at.gv.egiz.eaaf.core.api.idp.IAttributeBuilder;
import at.gv.egiz.eaaf.core.api.idp.IAuthData;
+import at.gv.egiz.eaaf.core.impl.idp.AuthenticationData;
import at.gv.egiz.eaaf.core.impl.idp.builder.attributes.BpkAttributeBuilder;
@RunWith(SpringJUnit4ClassRunner.class)
@@ -16,6 +17,21 @@ import at.gv.egiz.eaaf.core.impl.idp.builder.attributes.BpkAttributeBuilder;
public class BpkAttributeBuilderTest extends AbstractAttributeBuilderTest {
private final IAttributeBuilder attrBuilde = new BpkAttributeBuilder();
+
+ @Test
+ public void organwalterBpkTest() throws Exception {
+ spConfigMap.put("target", "urn:publicid:gv.at:cdid+ZP-MH");
+
+ final IAuthData authData = buildAuthData();
+ ((AuthenticationData) authData).setBpkType("urn:publicid:gv.at:cdid+OW");
+
+ final String value = attrBuilde.build(spConfig, authData, gen);
+
+ Assert.assertEquals("Wrong bPK",
+ "OW:" + authData.getBpk(),
+ value);
+
+ }
@Test
public void performTestBpk() throws Exception {