![]() 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") If you want to play with the API but don't feel like trying it on a real app, you can run the example project.// entry point for all assertThat methods and utility methods (e.g. DocumentationĬheck out our dedicated documentation page for info about this library, API reference and more: Examples Instructions on how to run Fabric Example within this repo can be found in the FabricExample README. To learn how to use react-native-gesture-handler with Fabric architecture, head over to Fabric README. InstallationĬheck getting started section of our docs for the detailed installation instructions. It makes touch interactions and gesture tracking not only smooth, but also dependable and deterministic. With this library gestures are no longer controlled by the JS responder system, but instead are recognized and tracked in the UI thread. ![]() React Native Gesture Handler provides native-driven gesture management APIs for building best possible touch-based experiences in React Native. ![]() Declarative API exposing platform native touch and gesture system to React Native. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |