org.mule.tck.junit4.rule
Class WarnOnTimeout

java.lang.Object
  extended by org.junit.runners.model.Statement
      extended by org.mule.tck.junit4.rule.WarnOnTimeout

public class WarnOnTimeout
extends org.junit.runners.model.Statement

Defines a Statement to execute a test with a given timeout. Differently from JUnit's internal.runners.statements.FailOnTimeout this statement just prints a warning in the log, so the test will pass in case of timeout.


Constructor Summary
WarnOnTimeout(org.junit.runners.model.Statement next, long timeout)
           
 
Method Summary
 void evaluate()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WarnOnTimeout

public WarnOnTimeout(org.junit.runners.model.Statement next,
                     long timeout)
Method Detail

evaluate

public void evaluate()
              throws Throwable
Specified by:
evaluate in class org.junit.runners.model.Statement
Throws:
Throwable


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