![]() Inspired by Defense of the Ancients, a custom map for Warcraft III, Riot's founders sought to develop a stand-alone game in the same genre. Import .League of Legends ( LoL), commonly referred to as League, is a 2009 multiplayer online battle arena video game developed and published by Riot Games. Import static .BinaryRepresentation.BINARY_REPRESENTATION and many more assertions: iterable, stream, array, map, dates, path, file, numbers, predicate, optional. extracting(character -> character.getRace().getName()) containsOnly(aragorn, frodo, legolas, boromir) combining filtering and extraction (yes we can) filtering a collection before assertingĪssertThat(fellowshipOfTheRing).filteredOn(character -> character.getName().contains("o")) extracting multiple values at once grouped in tuplesĪssertThat(fellowshipOfTheRing).extracting("name", "age", "race.name") using the 'extracting' feature to check fellowshipOfTheRing character's namesĪssertThat(fellowshipOfTheRing).extracting(TolkienCharacter::getName) ĪssertThatThrownBy(() -> ) ĪssertThat(thrown).hasMessageContaining("boom") as() is used to describe the test and will be shown before the error messageĪssertThat(frodo.getAge()).as("check %s's age", frodo.getName()).isEqualTo(33) in the examples below fellowshipOfTheRing is a ListĪssertThat(fellowshipOfTheRing).hasSize(9) collection specific assertions (there are plenty more) Import static .Assertions.* ĪssertThat(frodo.getName()).isEqualTo("Frodo") ĪssertThat(frodo.getName()).startsWith("Fro") ![]() entry point for all assertThat methods and utility methods (e.g.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |