Created
March 24, 2014 07:56
-
-
Save dgageot/9735968 to your computer and use it in GitHub Desktop.
This file contains 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
List<Item> items_1 = new ItemsProvider().getItems(); | |
List<Item> items_2 = new ItemsProvider().getItems(); | |
assertThat(items_1).usingFieldByFieldElementComparator().containsExactlyElementsOf(items_2); |
This file contains 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
List<Item> items_1 = new ItemsProvider().getItems(); | |
List<Item> items_2 = new ItemsProvider().getItems(); | |
assertThat(items_1).hasSize(items_2.size()); | |
for (int i = 0; i < items_1.size(); i++) { | |
Item item_1 = items_1.get(i); | |
Item item_2 = items_2.get(i); | |
assertThat(item_1.getName()).isEqualTo(item_2.getName()); | |
assertThat(item_1.getQuality()).isEqualTo(item_2.getQuality()); | |
assertThat(item_1.getSellIn()).isEqualTo(item_2.getSellIn()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment