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/network/protocol SubjectCarryingProtocolTest.java
Date Sun, 14 Mar 2004 01:01:49 GMT
adc         2004/03/13 17:01:49

  Modified:    modules/security/src/test/org/apache/geronimo/security/network/protocol
                        SubjectCarryingProtocolTest.java
  Log:
  Use connectURI
  
  Revision  Changes    Path
  1.4       +6 -5      incubator-geronimo/modules/security/src/test/org/apache/geronimo/security/network/protocol/SubjectCarryingProtocolTest.java
  
  Index: SubjectCarryingProtocolTest.java
  ===================================================================
  RCS file: /home/cvs/incubator-geronimo/modules/security/src/test/org/apache/geronimo/security/network/protocol/SubjectCarryingProtocolTest.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- SubjectCarryingProtocolTest.java	13 Mar 2004 16:49:47 -0000	1.3
  +++ SubjectCarryingProtocolTest.java	14 Mar 2004 01:01:49 -0000	1.4
  @@ -72,6 +72,7 @@
       private Latch shutdownLatch;
       private Latch stopLatch;
       private ThreadGroup threadGroup;
  +    private ServerSocketAcceptor ssa;
   
       public void testDummy() throws Exception {
       }
  @@ -115,8 +116,8 @@
   
               SocketProtocol sp = new SocketProtocol();
               sp.setTimeout(1000 * 1000); //todo reset to 10s
  -            sp.setInterface(new InetSocketAddress("localhost", 0));
  -            sp.setAddress(new InetSocketAddress("localhost", 8081));
  +            sp.setInterface(new InetSocketAddress(ssa.getConnectURI().getHost(), 0));
  +            sp.setAddress(new InetSocketAddress(ssa.getConnectURI().getHost(), ssa.getConnectURI().getPort()));
               sp.setSelectorManager(sm);
   
               clientStack.push(sp);
  @@ -233,10 +234,10 @@
               pf.setReclaimPeriod(10 * 1000);
               pf.setTemplate(templateStack);
   
  -            ServerSocketAcceptor ssa = new ServerSocketAcceptor();
  +            ssa = new ServerSocketAcceptor();
               ssa.setSelectorManager(sm);
               ssa.setTimeOut(5 * 1000);
  -            ssa.setUri(new URI("async://localhost:8081/?tcp.nodelay=true&tcp.backlog=5#"));
  +            ssa.setUri(new URI("async://localhost:0/?tcp.nodelay=true&tcp.backlog=5#"));
               ssa.setAcceptorListener(pf);
               ssa.doStart();
   
  
  
  

Mime
View raw message