org.mule.tck.junit4.rule
Class WarningTimeout

java.lang.Object
  extended by org.mule.tck.junit4.rule.WarningTimeout
All Implemented Interfaces:
org.junit.rules.TestRule

public class WarningTimeout
extends Object
implements org.junit.rules.TestRule

Defines a TestRule that checks for timeouts in the execution of the tests, but differently from the JUnit's Timeout class, just prints a warning in the log and the test still pass.

This was implemented in order to maintain the old "failOnTimeout=false" feature from AbstractMuleTestCase


Constructor Summary
WarningTimeout(int milliseconds)
           
 
Method Summary
 org.junit.runners.model.Statement apply(org.junit.runners.model.Statement statement, Description description)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WarningTimeout

public WarningTimeout(int milliseconds)
Method Detail

apply

public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement statement,
                                               Description description)
Specified by:
apply in interface org.junit.rules.TestRule


Copyright © 2003-2012 MuleSoft, Inc.. All Rights Reserved.