Skip to content

Instantly share code, notes, and snippets.

@chbatey
Created October 3, 2013 15:13
Show Gist options
  • Save chbatey/6811469 to your computer and use it in GitHub Desktop.
Save chbatey/6811469 to your computer and use it in GitHub Desktop.
sample test
@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