com.silverpeas.util
Class ExecutionAttemptsTest
java.lang.Object
com.silverpeas.util.ExecutionAttemptsTest
public class ExecutionAttemptsTest
- extends Object
Tests the retry mechanism.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExecutionAttemptsTest
public ExecutionAttemptsTest()
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.