org.exolab.jmscts.core
Class TestFilter

java.lang.Object
  |
  +--org.exolab.jmscts.core.TestFilter

public class TestFilter
extends java.lang.Object

Instances of this class determine if a test case is to be tested or not, based on a filter specified by Filter

Version:
$Revision: 1.7 $ $Date: 2004/01/31 13:44:24 $
Author:
Tim Anderson

Constructor Summary
TestFilter(Filter filter)
          Construct a new TestFilter
 
Method Summary
 boolean includes(java.lang.Class factoryType, junit.framework.Test test)
          Determines if a test is included by the filter
 boolean includes(TestContext context, AckType mode, junit.framework.Test test)
          Determines if a test is included by the filter
 boolean includes(TestContext context, java.lang.Class messageType, junit.framework.Test test)
          Determines if a test is included by the filter
 boolean includes(TestContext context, MessagingBehaviour behaviour, java.lang.Class messageType, junit.framework.Test test)
          Determines if a test is included by the filter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestFilter

public TestFilter(Filter filter)
Construct a new TestFilter
Parameters:
filter - the filter
Method Detail

includes

public boolean includes(java.lang.Class factoryType,
                        junit.framework.Test test)
Determines if a test is included by the filter
Parameters:
factoryType - the class of the connection factorry
test - the test case
Returns:
true if it is included, false otherwise

includes

public boolean includes(TestContext context,
                        AckType mode,
                        junit.framework.Test test)
Determines if a test is included by the filter
Parameters:
context - the test context
mode - the session acknowledgement mode
test - the test case
Returns:
true if it is included, false otherwise

includes

public boolean includes(TestContext context,
                        java.lang.Class messageType,
                        junit.framework.Test test)
Determines if a test is included by the filter
Parameters:
context - the test context
messageType - the message type
test - the test case
Returns:
true if it is included, false otherwise

includes

public boolean includes(TestContext context,
                        MessagingBehaviour behaviour,
                        java.lang.Class messageType,
                        junit.framework.Test test)
Determines if a test is included by the filter
Parameters:
context - the test context
behaviour - the messaging behaviour
messageType - the message type
test - the test case
Returns:
true if it is included, false otherwise


Copyright © 2001-2004 JMS CTS Team. All Rights Reserved.