com.google.common.testing.junit3
Class TearDownTestCaseTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by com.google.common.testing.junit3.TearDownTestCaseTest
All Implemented Interfaces:
junit.framework.Test

public class TearDownTestCaseTest
extends junit.framework.TestCase

Unit test for TearDownTestCase.

Author:
kevinb

Nested Class Summary
private  class TearDownTestCaseTest.FailingTearDown
           
private static class TearDownTestCaseTest.SomeObject
           
private  class TearDownTestCaseTest.SomeObjectTearDown
           
private  class TearDownTestCaseTest.TidyObject
           
 
Field Summary
private  TestLogHandler handler
           
private  java.util.List<java.lang.String> messages
           
private  TearDownTestCase test
           
 
Constructor Summary
TearDownTestCaseTest()
           
 
Method Summary
private  void assertFailureWasLogged()
           
private  void assertNothingWasLogged()
           
protected  void setUp()
           
protected  void tearDown()
          This is deeply ironic.
 void testAdHocTearDownObject()
           
 void testDontSkipOptionalTearDowns()
           
 void testReusableTearDownObject()
           
 void testReverseOrder()
           
 void testSelfCleaningObject()
           
 void testTearDownFailure()
           
 void testWithNoTestEnvironments()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

test

private TearDownTestCase test

messages

private java.util.List<java.lang.String> messages

handler

private TestLogHandler handler
Constructor Detail

TearDownTestCaseTest

public TearDownTestCaseTest()
Method Detail

setUp

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

testAdHocTearDownObject

public void testAdHocTearDownObject()
                             throws java.lang.Exception
Throws:
java.lang.Exception

testReusableTearDownObject

public void testReusableTearDownObject()
                                throws java.lang.Exception
Throws:
java.lang.Exception

testSelfCleaningObject

public void testSelfCleaningObject()
                            throws java.lang.Exception
Throws:
java.lang.Exception

testReverseOrder

public void testReverseOrder()
                      throws java.lang.Exception
Throws:
java.lang.Exception

testTearDownFailure

public void testTearDownFailure()
                         throws java.lang.Exception
Throws:
java.lang.Exception

testDontSkipOptionalTearDowns

public void testDontSkipOptionalTearDowns()
                                   throws java.lang.Exception
Throws:
java.lang.Exception

testWithNoTestEnvironments

public void testWithNoTestEnvironments()
                                throws java.lang.Throwable
Throws:
java.lang.Throwable

assertNothingWasLogged

private void assertNothingWasLogged()

assertFailureWasLogged

private void assertFailureWasLogged()

tearDown

protected void tearDown()
                 throws java.lang.Exception
This is deeply ironic.

Overrides:
tearDown in class junit.framework.TestCase
Throws:
java.lang.Exception


Copyright © 2011 Google. All Rights Reserved.