Package org.jboss.ha.jndi

Examples of org.jboss.ha.jndi.LookupSucceededFilter


public class LookupSucceededFilterUnitTestCase extends TestCase
{
   private final ClusterNodeFactory factory = new TestClusterNodeFactory();
   public void testFilterLogic()
   {
      ResponseFilter filter = new LookupSucceededFilter();
      ClusterNode sender = factory.getClusterNode(new IpAddress(12345));
      exerciseFilterLogic(filter, sender);
   }
View Full Code Here


      exerciseFilterLogic(filter, sender);
   }

   public void testFilterLogicViaAdapter()
   {
      ResponseFilter filter = new LookupSucceededFilter();
      Address sender = new IpAddress(12345);
      RspFilterAdapter adapter = new RspFilterAdapter(filter,factory);
      exerciseFilterLogic(adapter, sender);
  }
View Full Code Here

    * the needMoreResponses() call from an earlier acceptable response
    * doesn't result in an incorrect answer.
    */
   public void testConcurrentResponses()
   {
      ResponseFilter filter = new LookupSucceededFilter();
      ClusterNode sender1 = factory.getClusterNode(new IpAddress(12345));
      ClusterNode sender2 = factory.getClusterNode(new IpAddress(67890));
     
      filter.isAcceptable("A", sender1);
      filter.isAcceptable(null, sender2);
      assertFalse("Concurrency problem (JBAS-7945)",filter.needMoreResponses());
   }
View Full Code Here

*/
public class LookupSucceededFilterUnitTestCase extends TestCase
{
   public void testFilterLogic()
   {
      ResponseFilter filter = new LookupSucceededFilter();
      ClusterNode sender = new ClusterNodeImpl(new IpAddress(12345));
      exerciseFilterLogic(filter, sender);
   }
View Full Code Here

      exerciseFilterLogic(filter, sender);
   }

   public void testFilterLogicViaAdapter()
   {
      ResponseFilter filter = new LookupSucceededFilter();
      Address sender = new IpAddress(12345);
      RspFilterAdapter adapter = new RspFilterAdapter(filter);
      exerciseFilterLogic(adapter, sender);
  }
View Full Code Here

TOP

Related Classes of org.jboss.ha.jndi.LookupSucceededFilter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.