From b60e5b0ea14b47e83866fc13baab0188fb983902 Mon Sep 17 00:00:00 2001 From: Damien Laniel Date: Wed, 13 Jun 2007 13:07:49 +0000 Subject: fix for getting nameIdentifier content --- java/tests/LoginTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'java/tests/LoginTest.java') 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); -- cgit