com.atlassian.core.logging
Class TestThreadLocalErrorCollection

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by com.atlassian.core.logging.TestThreadLocalErrorCollection
All Implemented Interfaces:
junit.framework.Test

public class TestThreadLocalErrorCollection
extends junit.framework.TestCase


Field Summary
static org.apache.log4j.spi.LoggingEvent TEST_LOGGING_EVENT
           
 
Constructor Summary
TestThreadLocalErrorCollection()
           
 
Method Summary
protected  void setUp()
           
 void tearDown()
           
 void testDisabledPreventsAddingErrorMessages()
           
 void testEnabledAllowsErrorMessages()
           
 void testLimitDefault()
           
 void testLimitMutated()
           
 void testLimitNormal()
           
 void testToggle()
           
 
Methods inherited from class junit.framework.TestCase
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, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TEST_LOGGING_EVENT

public static final org.apache.log4j.spi.LoggingEvent TEST_LOGGING_EVENT
Constructor Detail

TestThreadLocalErrorCollection

public TestThreadLocalErrorCollection()
Method Detail

setUp

protected void setUp()
              throws Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
Exception

tearDown

public void tearDown()
              throws Exception
Overrides:
tearDown in class junit.framework.TestCase
Throws:
Exception

testDisabledPreventsAddingErrorMessages

public void testDisabledPreventsAddingErrorMessages()
                                             throws Exception
Throws:
Exception

testEnabledAllowsErrorMessages

public void testEnabledAllowsErrorMessages()
                                    throws Exception
Throws:
Exception

testToggle

public void testToggle()
                throws Exception
Throws:
Exception

testLimitNormal

public void testLimitNormal()
                     throws Exception
Throws:
Exception

testLimitDefault

public void testLimitDefault()
                      throws Exception
Throws:
Exception

testLimitMutated

public void testLimitMutated()
                      throws Exception
Throws:
Exception


Copyright © 2015 Atlassian. All rights reserved.