org.apache.log4j.rule
Class AndRuleTest

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

public class AndRuleTest
extends junit.framework.TestCase

Test for AndRule.


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

AndRuleTest

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

Parameters:
testName - test name.
Method Detail

test1

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


test2

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


test3

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


test4

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


test5

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


test6

public void test6()
           throws java.io.IOException,
                  java.lang.ClassNotFoundException
Test deserialized And.

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

test7

public void test7()
           throws java.io.IOException,
                  java.lang.ClassNotFoundException
Test deserialized And when Level doesn't 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.