public class StringMatchFilterTest
extends junit.framework.TestCase
| Constructor and Description |
|---|
StringMatchFilterTest(String name)
Create new test instance.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toStringassertEquals, 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, failpublic StringMatchFilterTest(String name)
name - test name.public void test1()
public void test2()
public void test3()
public void test4()
public void test5()
Copyright © 2013 The Apache Software Foundation. Licensed under the Apache License, Version 2.0
Apache Extras for Apache log4j, Apache log4j and Apache are trademarks of the Apache Software Foundation.