Created
October 3, 2013 15:13
-
-
Save chbatey/6811469 to your computer and use it in GitHub Desktop.
sample test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Test(groups = "unit") | |
public void shouldReadRetryIfNumberOfRetriesLessThanConfiguredRetries() { | |
ConsistencyLevel originalConsistency = ConsistencyLevel.ALL; | |
int numberOfRetries = NUMBER_OF_RETRIES - 1; | |
RetryPolicy.RetryDecision decision = underTest.onReadTimeout(null, originalConsistency, 1, 1, false, numberOfRetries); | |
assertEquals(decision.getType(), RetryPolicy.RetryDecision.Type.RETRY, "Should retry"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment