com.google.common.testing.junit4
Class TearDownMethodRule

java.lang.Object
  extended by com.google.common.testing.junit4.TearDownMethodRule
All Implemented Interfaces:
TearDownAccepter, org.junit.rules.MethodRule

public final class TearDownMethodRule
extends java.lang.Object
implements org.junit.rules.MethodRule, TearDownAccepter

See TearDownTestCase.

Author:
Luiz-Otavio "Z" Zorzella

Field Summary
(package private)  TearDownStack stack
           
 
Constructor Summary
TearDownMethodRule()
           
 
Method Summary
 void addTearDown(TearDown tearDown)
          Registers a TearDown implementor which will be run after the test execution.
 org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base, org.junit.runners.model.FrameworkMethod method, java.lang.Object target)
          Don't call this method directly -- it fullfils the MethodRule interface.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

stack

final TearDownStack stack
Constructor Detail

TearDownMethodRule

public TearDownMethodRule()
Method Detail

addTearDown

public final void addTearDown(TearDown tearDown)
Registers a TearDown implementor which will be run after the test execution.

Specified by:
addTearDown in interface TearDownAccepter

apply

public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base,
                                               org.junit.runners.model.FrameworkMethod method,
                                               java.lang.Object target)
Don't call this method directly -- it fullfils the MethodRule interface.

Specified by:
apply in interface org.junit.rules.MethodRule


Copyright © 2011 Google. All Rights Reserved.