Thomas Traude [email protected] Twitter ... · Extendorg.as sertj . core. api. Abs tract...

13

Transcript of Thomas Traude [email protected] Twitter ... · Extendorg.as sertj . core. api. Abs tract...

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
Page 2: 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

Thomas Traude

[email protected]

Twitter: @ThomasTraude

Java GuySoftwerkskammer Ruhrgebiet

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
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
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

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

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

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

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

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

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
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

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://unsplash.com/photos/4dpAqfTbvKA

● https://de.wikipedia.org/wiki/Datei:Coffee_cup_icon.svg

Bilder-Quellen