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

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

Deprecated. The timeout field of the @Test annotation is deprecated. Therefore, this builder is also marked as deprecated. Please make use of the @Rule annotation.

@Deprecated
public class FailOnTimeoutStatementBuilder
extends Object
implements MethodStatementBuilder

The FailOnTimeoutStatementBuilder creates a FailOnTimeout statement for the timeout given in the @Test annotation. If no timeout is specified, the builder returns the provided next Statement.


Constructor Summary
FailOnTimeoutStatementBuilder()
          Deprecated.  
 
Method Summary
 org.junit.runners.model.Statement createStatement(org.junit.runners.model.TestClass testClass, org.junit.runners.model.FrameworkMethod method, Object target, org.junit.runners.model.Statement next, org.junit.runner.Description description, org.junit.runner.notification.RunNotifier notifier)
          Deprecated. 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

FailOnTimeoutStatementBuilder

public FailOnTimeoutStatementBuilder()
Deprecated. 
Method Detail

createStatement

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

Specified by:
createStatement in interface MethodStatementBuilder
Parameters:
testClass - the TestClass to create the Statement for
method - the FrameworkMethod 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.