com.silverpeas.util
Class ExecutionAttemptsTest

java.lang.Object
  extended by com.silverpeas.util.ExecutionAttemptsTest

public class ExecutionAttemptsTest
extends Object

Tests the retry mechanism.


Constructor Summary
ExecutionAttemptsTest()
           
 
Method Summary
protected static boolean exectutedCorrectly()
           
protected static boolean invoked()
           
 void retryNothingWhenAllWorksFine()
          Test of retry method, of class ExecutionAttempts.
 void retryNothingWithNoAttemptsWhenAFailureIsOccuring()
           
 void retryOnlyOnceWhenAFailureOccuredWithinTheFirstInvocation()
           
 void retrySeveralTimesWhenAFailureIsOccuring()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExecutionAttemptsTest

public ExecutionAttemptsTest()
Method Detail

retryNothingWhenAllWorksFine

public void retryNothingWhenAllWorksFine()
                                  throws Exception
Test of retry method, of class ExecutionAttempts.

Throws:
Exception

retryNothingWithNoAttemptsWhenAFailureIsOccuring

public void retryNothingWithNoAttemptsWhenAFailureIsOccuring()
                                                      throws Exception
Throws:
Exception

retrySeveralTimesWhenAFailureIsOccuring

public void retrySeveralTimesWhenAFailureIsOccuring()
                                             throws Exception
Throws:
Exception

retryOnlyOnceWhenAFailureOccuredWithinTheFirstInvocation

public void retryOnlyOnceWhenAFailureOccuredWithinTheFirstInvocation()
                                                              throws Exception
Throws:
Exception

exectutedCorrectly

protected static boolean exectutedCorrectly()

invoked

protected static boolean invoked()


Copyright © 2016 Silverpeas. All Rights Reserved.