org.apache.log4j.rule
Class OrRuleTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.log4j.rule.OrRuleTest
All Implemented Interfaces:
junit.framework.Test

public class OrRuleTest
extends junit.framework.TestCase

Test for OrRule.


Constructor Summary
OrRuleTest(java.lang.String testName)
          Create new test.
 
Method Summary
 void test1()
          OrRule.getRule(Stack) throws exception if only one rule provided.
 void test2()
          OrRule.getRule(Stack) throws exception if non-rules are provided.
 void test3()
          Test Or of Level and Time.
 void test4()
          Test Or of Level and Time when Level does not match.
 void test5()
          Test Or of Level and Time when Time does not match.
 void test6()
          Test Or of Level and Time when Time and Level do not match.
 void test7()
          Test deserialized Or.
 void test8()
          Test deserialized Or when neither rule match.
 
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

OrRuleTest

public OrRuleTest(java.lang.String testName)
Create new test.

Parameters:
testName - test name.
Method Detail

test1

public void test1()
OrRule.getRule(Stack) throws exception if only one rule provided.


test2

public void test2()
OrRule.getRule(Stack) throws exception if non-rules are provided.


test3

public void test3()
Test Or of Level and Time.


test4

public void test4()
Test Or of Level and Time when Level does not match.


test5

public void test5()
Test Or of Level and Time when Time does not match.


test6

public void test6()
Test Or of Level and Time when Time and Level do not match.


test7

public void test7()
           throws java.io.IOException,
                  java.lang.ClassNotFoundException
Test deserialized Or.

Throws:
java.io.IOException
java.lang.ClassNotFoundException

test8

public void test8()
           throws java.io.IOException,
                  java.lang.ClassNotFoundException
Test deserialized Or when neither rule match.

Throws:
java.io.IOException
java.lang.ClassNotFoundException


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.