|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.apache.log4j.filter.StringMatchFilterTest
public class StringMatchFilterTest
Unit tests for StringMatchFilter.
Constructor Summary | |
---|---|
StringMatchFilterTest(java.lang.String name)
Create new test instance. |
Method Summary | |
---|---|
void |
test1()
Check that StringMatchFilter.decide() returns Filter.NEUTRAL when string to match is unspecified. |
void |
test2()
Check that StringMatchFilter.decide() returns Filter.NEUTRAL when string to match does not appear in message. |
void |
test3()
Check that StringMatchFilter.decide() returns Filter.ACCEPT when string to match does appear in message. |
void |
test4()
Check that StringMatchFilter.decide() returns Filter.DENY when string to match does appear in message and accept on match is false. |
void |
test5()
Check that StringMatchFilter.decide() returns Filter.NEUTRAL when string to match does appear in message but differs in case. |
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, 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 |
Constructor Detail |
---|
public StringMatchFilterTest(java.lang.String name)
name
- test name.Method Detail |
---|
public void test1()
public void test2()
public void test3()
public void test4()
public void test5()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2010 The Apache Software Foundation. Licensed under the Apache License, Version 2.0
Apache Extras Companion for Apache log4j, Apache log4j and Apache are trademarks of the Apache Software Foundation.