thomas traude [email protected] twitter ... · extendorg.as sertj . core. api. abs tract...
TRANSCRIPT
![Page 1: Thomas Traude thomas.traude@codecentric.de Twitter ... · Extendorg.as sertj . core. api. Abs tract Assert for handwritten custom Assertions or use the Assertion Generator (via Ma'æn](https://reader033.vdocuments.mx/reader033/viewer/2022050508/5f9971e3eff5576dc26891fc/html5/thumbnails/1.jpg)
![Page 3: Thomas Traude thomas.traude@codecentric.de Twitter ... · Extendorg.as sertj . core. api. Abs tract Assert for handwritten custom Assertions or use the Assertion Generator (via Ma'æn](https://reader033.vdocuments.mx/reader033/viewer/2022050508/5f9971e3eff5576dc26891fc/html5/thumbnails/3.jpg)
![Page 4: Thomas Traude thomas.traude@codecentric.de Twitter ... · Extendorg.as sertj . core. api. Abs tract Assert for handwritten custom Assertions or use the Assertion Generator (via Ma'æn](https://reader033.vdocuments.mx/reader033/viewer/2022050508/5f9971e3eff5576dc26891fc/html5/thumbnails/4.jpg)
![Page 5: Thomas Traude thomas.traude@codecentric.de Twitter ... · Extendorg.as sertj . core. api. Abs tract Assert for handwritten custom Assertions or use the Assertion Generator (via Ma'æn](https://reader033.vdocuments.mx/reader033/viewer/2022050508/5f9971e3eff5576dc26891fc/html5/thumbnails/5.jpg)
Agenda● Warum AssertJ?● Code-Beispiele● Montag:
AssertJ in eurem Projekt
![Page 6: Thomas Traude thomas.traude@codecentric.de Twitter ... · Extendorg.as sertj . core. api. Abs tract Assert for handwritten custom Assertions or use the Assertion Generator (via Ma'æn](https://reader033.vdocuments.mx/reader033/viewer/2022050508/5f9971e3eff5576dc26891fc/html5/thumbnails/6.jpg)
Wer benutzt…?● AssertJ● TestNG● JUnit● Hamcrest● Spock● ...was sonst?
![Page 7: Thomas Traude thomas.traude@codecentric.de Twitter ... · Extendorg.as sertj . core. api. Abs tract Assert for handwritten custom Assertions or use the Assertion Generator (via Ma'æn](https://reader033.vdocuments.mx/reader033/viewer/2022050508/5f9971e3eff5576dc26891fc/html5/thumbnails/7.jpg)
Warum AssertJ?● Verbesserte Lesbarkeit mit Fluent API● Assertions für 50+ Java Typen● Hilfreiche Fehlermeldungen● Einfach zu nutzen in deiner IDE● Erweiterbar● Open Source
![Page 8: Thomas Traude thomas.traude@codecentric.de Twitter ... · Extendorg.as sertj . core. api. Abs tract Assert for handwritten custom Assertions or use the Assertion Generator (via Ma'æn](https://reader033.vdocuments.mx/reader033/viewer/2022050508/5f9971e3eff5576dc26891fc/html5/thumbnails/8.jpg)
Show me the code!
![Page 9: Thomas Traude thomas.traude@codecentric.de Twitter ... · Extendorg.as sertj . core. api. Abs tract Assert for handwritten custom Assertions or use the Assertion Generator (via Ma'æn](https://reader033.vdocuments.mx/reader033/viewer/2022050508/5f9971e3eff5576dc26891fc/html5/thumbnails/9.jpg)
Website / Doku / Examples
![Page 10: Thomas Traude thomas.traude@codecentric.de Twitter ... · Extendorg.as sertj . core. api. Abs tract Assert for handwritten custom Assertions or use the Assertion Generator (via Ma'æn](https://reader033.vdocuments.mx/reader033/viewer/2022050508/5f9971e3eff5576dc26891fc/html5/thumbnails/10.jpg)
Weiteres● Code Completion / JavaDoc● Guava, Joda Time, etc.● Open Source
![Page 11: Thomas Traude thomas.traude@codecentric.de Twitter ... · Extendorg.as sertj . core. api. Abs tract Assert for handwritten custom Assertions or use the Assertion Generator (via Ma'æn](https://reader033.vdocuments.mx/reader033/viewer/2022050508/5f9971e3eff5576dc26891fc/html5/thumbnails/11.jpg)
![Page 12: Thomas Traude thomas.traude@codecentric.de Twitter ... · Extendorg.as sertj . core. api. Abs tract Assert for handwritten custom Assertions or use the Assertion Generator (via Ma'æn](https://reader033.vdocuments.mx/reader033/viewer/2022050508/5f9971e3eff5576dc26891fc/html5/thumbnails/12.jpg)
Links● AssertJ website
http://joel-costigliola.github.io/assertj/
● Code examples from this talkhttps://gitlab.codecentric.de/thomas.traude/assertj-introduction
![Page 13: Thomas Traude thomas.traude@codecentric.de Twitter ... · Extendorg.as sertj . core. api. Abs tract Assert for handwritten custom Assertions or use the Assertion Generator (via Ma'æn](https://reader033.vdocuments.mx/reader033/viewer/2022050508/5f9971e3eff5576dc26891fc/html5/thumbnails/13.jpg)
● https://unsplash.com/photos/4dpAqfTbvKA
● https://de.wikipedia.org/wiki/Datei:Coffee_cup_icon.svg
Bilder-Quellen