geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject cvs commit: incubator-geronimo/modules/security/src/test/org/apache/geronimo/security/remoting/jmx RemoteLoginTest.java
Date Wed, 25 Feb 2004 02:27:01 GMT
adc         2004/02/24 18:27:01

  Modified:    modules/security/src/test/org/apache/geronimo/security/remoting/jmx
                        RemoteLoginTest.java
  Log:
  Feeling better now.
  
  Revision  Changes    Path
  1.4       +4 -15     incubator-geronimo/modules/security/src/test/org/apache/geronimo/security/remoting/jmx/RemoteLoginTest.java
  
  Index: RemoteLoginTest.java
  ===================================================================
  RCS file: /home/cvs/incubator-geronimo/modules/security/src/test/org/apache/geronimo/security/remoting/jmx/RemoteLoginTest.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- RemoteLoginTest.java	18 Feb 2004 21:26:10 -0000	1.3
  +++ RemoteLoginTest.java	25 Feb 2004 02:27:01 -0000	1.4
  @@ -85,7 +85,6 @@
    */
   public class RemoteLoginTest extends TestCase {
       Kernel kernel;
  -    ObjectName gssapiRegistration;
       ObjectName loginService;
       ObjectName kerberosRealm;
       ObjectName subsystemRouter;
  @@ -100,10 +99,8 @@
       LoginServiceMBean saslRemoteProxy;
       LoginServiceMBean gssapiRemoteProxy;
   
  -    public void testDummy() {
  -    }
   
  -    public void XtestLogin() throws Exception {
  +    public void testLogin() throws Exception {
           LoginContext context = new LoginContext("FOO", new UsernamePasswordCallback("alan",
"starcraft"));
   
           context.login();
  @@ -119,18 +116,13 @@
           context.logout();
       }
   
  -    public void XsetUp() throws Exception {
  +    public void setUp() throws Exception {
           kernel = new Kernel("test.kernel", "simple.geronimo.test");
           kernel.boot();
   
           GBeanMBean gbean;
   
           // Create all the parts
  -        gbean = new GBeanMBean("org.apache.geronimo.remoting.transport.TransportRegistration");
  -        gssapiRegistration = new ObjectName("geronimo.remoting:registration=gssapi");
  -        gbean.setAttribute("TransportFactory", "org.apache.geronimo.remoting.transport.async.TransportFactory");
  -        gbean.setAttribute("TransportName", "gssapi");
  -        kernel.loadGBean(gssapiRegistration, gbean);
   
           gbean = new GBeanMBean("org.apache.geronimo.security.jaas.LoginService");
           loginService = new ObjectName("geronimo.security:type=LoginService");
  @@ -190,7 +182,6 @@
           serverStub = new ObjectName("geronimo.remoting:target=LoginServiceStub");
           kernel.loadGBean(serverStub, gbean);
   
  -        kernel.startGBean(gssapiRegistration);
           kernel.startGBean(loginService);
           kernel.startGBean(kerberosRealm);
           kernel.startGBean(subsystemRouter);
  @@ -215,7 +206,7 @@
           gssapiRemoteProxy = RemoteLoginServiceFactory.create(connectURI.getHost(), connectURI.getPort());
       }
   
  -    protected void XtearDown() throws Exception {
  +    protected void tearDown() throws Exception {
           kernel.stopGBean(serverStub);
           kernel.stopGBean(secureJmxRouter);
           kernel.stopGBean(jmxRouter);
  @@ -226,9 +217,7 @@
           kernel.stopGBean(subsystemRouter);
           kernel.stopGBean(kerberosRealm);
           kernel.stopGBean(loginService);
  -        kernel.stopGBean(gssapiRegistration);
   
  -        kernel.unloadGBean(gssapiRegistration);
           kernel.unloadGBean(loginService);
           kernel.unloadGBean(kerberosRealm);
           kernel.unloadGBean(subsystemRouter);
  
  
  

Mime
View raw message