|
xmlBlaster 2.2.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object junit.framework.Assert junit.framework.TestCase org.xmlBlaster.test.mime.TestGetRegexFilter
public class TestGetRegexFilter
This client tests the access filter plugin framework on get() invocations.
Here we test the regular expression plugin which allows us to select messages when the message content matches a given regular expression. We start our own xmlBlaster server in a thread. This client may be invoked multiple time on the same xmlBlaster server, as it cleans up everything after his tests are done.
Invoke examples:
java junit.textui.TestRunner org.xmlBlaster.test.mime.TestGetRegexFilter java junit.swingui.TestRunner org.xmlBlaster.test.mime.TestGetRegexFilter
Field Summary | |
---|---|
private I_XmlBlasterAccess |
con
|
private Global |
glob
|
private static java.util.logging.Logger |
log
|
private static java.lang.String |
ME
|
private java.lang.String |
name
|
private java.lang.String |
passwd
|
private int |
serverPort
|
private EmbeddedXmlBlaster |
serverThread
|
Constructor Summary | |
---|---|
TestGetRegexFilter(Global glob,
java.lang.String testName,
java.lang.String name)
Constructs the TestGetRegexFilter object. |
Method Summary | |
---|---|
static void |
main(java.lang.String[] args)
Invoke: |
protected void |
setUp()
Sets up the fixture. |
static junit.framework.Test |
suite()
Method is used by TestRunner to load these tests |
protected void |
tearDown()
Tears down the fixture. |
void |
testFilter()
First we send a message which matches our regular expression and should be returned to us, then we send a message with a different content which should be filtered |
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString |
Methods inherited from class junit.framework.Assert |
---|
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private static java.lang.String ME
private final Global glob
private static java.util.logging.Logger log
private I_XmlBlasterAccess con
private java.lang.String name
private java.lang.String passwd
private EmbeddedXmlBlaster serverThread
private int serverPort
Constructor Detail |
---|
public TestGetRegexFilter(Global glob, java.lang.String testName, java.lang.String name)
testName
- The name used in the test suitename
- The name to login to the xmlBlasterMethod Detail |
---|
protected void setUp()
setUp
in class junit.framework.TestCase
protected void tearDown()
tearDown
in class junit.framework.TestCase
public void testFilter()
public static junit.framework.Test suite()
public static void main(java.lang.String[] args)
java org.xmlBlaster.test.mime.TestGetRegexFilter java -Djava.compiler= junit.textui.TestRunner org.xmlBlaster.test.mime.TestGetRegexFilter
|
xmlBlaster 2.2.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |