de.bechte.junit.runners.context.statements.builder
Class AfterClassStatementBuilder

java.lang.Object
  extended by de.bechte.junit.runners.context.statements.builder.AfterClassStatementBuilder
All Implemented Interfaces:
ClassStatementBuilder

public class AfterClassStatementBuilder
extends Object
implements ClassStatementBuilder

The AfterClassStatementBuilder creates a RunAfters statement that evaluates all @AfterClass annotated methods. If no such method exist, the builder will simply return the provided next Statement.


Constructor Summary
AfterClassStatementBuilder()
           
 
Method Summary
 org.junit.runners.model.Statement createStatement(org.junit.runners.model.TestClass testClass, org.junit.runners.model.Statement next, org.junit.runner.Description description, org.junit.runner.notification.RunNotifier notifier)
          Creates a Statement for the given attributes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AfterClassStatementBuilder

public AfterClassStatementBuilder()
Method Detail

createStatement

public org.junit.runners.model.Statement createStatement(org.junit.runners.model.TestClass testClass,
                                                         org.junit.runners.model.Statement next,
                                                         org.junit.runner.Description description,
                                                         org.junit.runner.notification.RunNotifier notifier)
Description copied from interface: ClassStatementBuilder
Creates a Statement for the given attributes.

Specified by:
createStatement in interface ClassStatementBuilder
Parameters:
testClass - the TestClass to create the Statement for
next - the next Statement to evaluate after the new Statement has been processed
description - the Description that should be used with the RunNotifier
notifier - the RunNotifier to be used to notify about events
Returns:
the created Statement (must not be null!)


Copyright © 2015. All rights reserved.