Skip to content

Instantly share code, notes, and snippets.

@madhu314
Created February 22, 2017 08:49
Show Gist options
  • Save madhu314/ad6ca7cb5327b4b02904d8d02ada8027 to your computer and use it in GitHub Desktop.
Save madhu314/ad6ca7cb5327b4b02904d8d02ada8027 to your computer and use it in GitHub Desktop.
@Test public void testAddShouldSortListIrrespectiveOfOrder() throws Exception {
addArticles();
for (int i = 0; i < fixture.orderedArticleList().size(); i++) {
assertThat(fixture.sortedList().get(i))
.isEqualTo(fixture.orderedArticleList().get(i));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment