|
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.TestGetFilter
public class TestGetFilter
This client tests the access filter plugin framework on get() invocations.
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.TestGetFilter java junit.swingui.TestRunner -noloading org.xmlBlaster.test.mime.TestGetFilter
Field Summary | |
---|---|
private I_XmlBlasterAccess |
con
|
private int |
filterMessageContentBiggerAs
|
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 | |
---|---|
TestGetFilter(Global glob,
java.lang.String testName,
java.lang.String name)
Constructs the TestGetFilter 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 <= 10 content length which should be updated to us, then we send a message with 11 bytes in the 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
private int filterMessageContentBiggerAs
Constructor Detail |
---|
public TestGetFilter(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.TestGetFilter java -Djava.compiler= junit.textui.TestRunner org.xmlBlaster.test.mime.TestGetFilter
|
xmlBlaster 2.2.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |