summaryrefslogtreecommitdiffstats
path: root/java/tests
diff options
context:
space:
mode:
authorDamien Laniel <dlaniel@entrouvert.com>2007-06-13 13:07:49 +0000
committerDamien Laniel <dlaniel@entrouvert.com>2007-06-13 13:07:49 +0000
commitb60e5b0ea14b47e83866fc13baab0188fb983902 (patch)
treec39c7f163500182d418b9bf4434bbc23de338f3f /java/tests
parent86da20c7416f881583d865a2f27b85a06678a56d (diff)
downloadlasso-b60e5b0ea14b47e83866fc13baab0188fb983902.tar.gz
lasso-b60e5b0ea14b47e83866fc13baab0188fb983902.tar.xz
lasso-b60e5b0ea14b47e83866fc13baab0188fb983902.zip
fix for getting nameIdentifier content
Diffstat (limited to 'java/tests')
-rw-r--r--java/tests/LoginTest.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/java/tests/LoginTest.java b/java/tests/LoginTest.java
index 40f2e09b..ac6d2e93 100644
--- a/java/tests/LoginTest.java
+++ b/java/tests/LoginTest.java
@@ -137,7 +137,7 @@ public class LoginTest extends TestCase {
responseUrl = idpLogin.getMsgUrl();
responseQuery = responseUrl.substring(responseUrl.indexOf("?") + 1);
idpRemoteProviderId = idpLogin.getRemoteProviderId();
- nameIdentifier = idpLogin.getNameIdentifier().getContent();
+ nameIdentifier = ((SamlNameIdentifier)idpLogin.getNameIdentifier()).getContent();
artifact = idpLogin.getAssertionArtifact();
assertNotNull(artifact);
method = lasso.HTTP_METHOD_REDIRECT;
@@ -169,7 +169,7 @@ public class LoginTest extends TestCase {
// Service provider assertion consumer (step 2: process SOAP response).
spLogin.processResponseMsg(soapResponseMsg);
- assertEquals(nameIdentifier, spLogin.getNameIdentifier().getContent());
+ assertEquals(nameIdentifier, ((SamlNameIdentifier)spLogin.getNameIdentifier()).getContent());
// The user doesn't have any federation yet.
spLogin.acceptSso();
spIdentity = spLogin.getIdentity();
@@ -208,7 +208,7 @@ public class LoginTest extends TestCase {
assertNotNull(idp);
idpLogout = new Logout(idp);
idpLogout.processRequestMsg(soapRequestMsg);
- assertEquals(nameIdentifier, idpLogout.getNameIdentifier().getContent());
+ assertEquals(nameIdentifier, ((SamlNameIdentifier)idpLogout.getNameIdentifier()).getContent());
assertNotNull(idpIdentityDump);
idpLogout.setIdentityFromDump(idpIdentityDump);
assertNotNull(idpSessionDump);