summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Liebig2008-02-12 10:10:40 (EST)
committerStefan Liebig2008-02-12 10:10:40 (EST)
commit932ec1bfe94b4cc2b34bf8f16fd163a4708b53a1 (patch)
tree406669495c2f29ed37c0b4f8edf149de7d9ce9b4
parentc0eb66cc24853f4ed1fae84c8e5f307b432523c1 (diff)
downloadorg.eclipse.riena-932ec1bfe94b4cc2b34bf8f16fd163a4708b53a1.zip
org.eclipse.riena-932ec1bfe94b4cc2b34bf8f16fd163a4708b53a1.tar.gz
org.eclipse.riena-932ec1bfe94b4cc2b34bf8f16fd163a4708b53a1.tar.bz2
preened
-rw-r--r--org.eclipse.riena.tests/src/org/eclipse/riena/security/services/itest/authentication/AuthenticationClientITest.java15
1 files changed, 9 insertions, 6 deletions
diff --git a/org.eclipse.riena.tests/src/org/eclipse/riena/security/services/itest/authentication/AuthenticationClientITest.java b/org.eclipse.riena.tests/src/org/eclipse/riena/security/services/itest/authentication/AuthenticationClientITest.java
index 096c97e..8ba8450 100644
--- a/org.eclipse.riena.tests/src/org/eclipse/riena/security/services/itest/authentication/AuthenticationClientITest.java
+++ b/org.eclipse.riena.tests/src/org/eclipse/riena/security/services/itest/authentication/AuthenticationClientITest.java
@@ -11,6 +11,7 @@
package org.eclipse.riena.security.services.itest.authentication;
import java.security.Principal;
+import java.util.Arrays;
import javax.security.auth.Subject;
@@ -47,10 +48,11 @@ public class AuthenticationClientITest extends RienaTestCase {
startBundles("org\\.eclipse\\.riena.communication.core", null);
startBundles("org\\.eclipse\\.riena.communication.factory.hessian", null);
startBundles("org\\.eclipse\\.riena.communication.registry", null);
- sessionServiceRegistration = new RemoteServiceFactory().createAndRegisterProxy(ISessionService.class, "http://localhost:8080/hessian/SessionService",
- "hessian", "org.eclipse.riena.sessionservice");
- authenticationServiceRegistration = new RemoteServiceFactory().createAndRegisterProxy(IAuthenticationService.class,
- "http://localhost:8080/hessian/AuthenticationService", "hessian", "org.eclipse.riena.authenticationservice");
+ sessionServiceRegistration = new RemoteServiceFactory().createAndRegisterProxy(ISessionService.class,
+ "http://localhost:8080/hessian/SessionService", "hessian", "org.eclipse.riena.sessionservice");
+ authenticationServiceRegistration = new RemoteServiceFactory().createAndRegisterProxy(
+ IAuthenticationService.class, "http://localhost:8080/hessian/AuthenticationService", "hessian",
+ "org.eclipse.riena.authenticationservice");
}
@@ -81,7 +83,7 @@ public class AuthenticationClientITest extends RienaTestCase {
PasswordCredential pc = new PasswordCredential("password: ", false);
pc.setPassword("christian".toCharArray());
creds[1] = pc;
- trace("Add credential: " + creds);
+ trace("Add credential: " + Arrays.toString(creds));
AuthenticationTicket ticket = authenticationService.login("Test", creds);
@@ -103,7 +105,8 @@ public class AuthenticationClientITest extends RienaTestCase {
try {
ServiceReference ref = Activator.getContext().getServiceReference(IAuthenticationService.ID);
- IAuthenticationService authenticationService = (IAuthenticationService) Activator.getContext().getService(ref);
+ IAuthenticationService authenticationService = (IAuthenticationService) Activator.getContext().getService(
+ ref);
AbstractCredential[] creds = new AbstractCredential[2];
NameCredential nc = new NameCredential("username: ", "xx");
nc.setName("john");