com.google.common.testing
Class TearDownStackTest

java.lang.Object
  extended by com.google.common.testing.junit4.TearDownTestCase
      extended by com.google.common.testing.TearDownStackTest
All Implemented Interfaces:
TearDownAccepter

public class TearDownStackTest
extends TearDownTestCase

Author:
Luiz-Otavio "Z" Zorzella

Nested Class Summary
private static interface TearDownStackTest.Callback
           
private static class TearDownStackTest.SimpleTearDown
           
private static class TearDownStackTest.ThrowingTearDown
           
 
Field Summary
 
Fields inherited from class com.google.common.testing.junit4.TearDownTestCase
tearDownRule
 
Constructor Summary
TearDownStackTest()
           
 
Method Summary
private  TearDownStack buildTearDownStack()
          Builds a TearDownStack that makes sure it's clear by the end of this test.
 void testMultipleTearDownsHappenInOrder()
           
 void testSingleTearDown()
           
 void testThrowingTearDown()
           
 
Methods inherited from class com.google.common.testing.junit4.TearDownTestCase
addTearDown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TearDownStackTest

public TearDownStackTest()
Method Detail

testSingleTearDown

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

testMultipleTearDownsHappenInOrder

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

testThrowingTearDown

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

buildTearDownStack

private TearDownStack buildTearDownStack()
Builds a TearDownStack that makes sure it's clear by the end of this test.



Copyright © 2011 Google. All Rights Reserved.