
Java Unit Testing with JUnit 5
Description
Alles über E-Books | Antworten auf Fragen rund um E-Books, Kopierschutz und Dateiformate finden Sie in unserem Info- & Hilfebereich.
Unit testing and test driven development have now become part of every developer's skill set. For Java developers, the most popular testing tool has been JUnit, and JUnit 5 is built using the latest features of Java. With Java Unit Testing with JUnit 5 , you'll master these new features, including method parameters, extensions, assertions and assumptions, and dynamic tests. You'll also see how to write clean tests with less code.
This book is a departure from using older practices and presents new ways of performing tests, building assertions, and injecting dependencies.
What You Will Learn
- Write tests the JUnit 5 way
-
Run your tests from within your IDE
- Integrate tests with your build and static analysis tools
-
Migrate from JUnit 4 to JUnit 5
Java developers both with and without any prior unit testing experience.
More details
Other editions
Additional editions

Persons
Rahul Sharma is a seasoned Java developer with over 11 years of industry experience. He is an open-source enthusiast and has worked on various projects such as Apache Crunch and HDT. He is the author of NGINX High Performance , published in July 2015.
Content
1: Building Software the Correct Way.- 2: Understanding Core JUnit 5.- 3: Developing an Application with JUnit 5 .- 4: Dependency Injection, Mocking, Testing Traits, and Grouping Tests.- 5: Testing Exceptions.- 6: Integrating Tools.- 7: JUnit 5 Extension Model.- 8: Dynamic Tests and Migration from JUnit 4.
System requirements
File format: PDF
Copy protection: Watermark-DRM (Digital Rights Management)
System requirements:
- Computer (Windows; MacOS X; Linux): Use the free software Adobe Reader, Adobe Digital Editions, or any other PDF viewer of your choice (see eBook Help).
- Tablet/Smartphone (Android; iOS): Install the free app Adobe Digital Editions or another reading app for eBooks, e.g., PocketBook (see eBook Help).
- E-reader: Bookeen, Kobo, Pocketbook, Sony, Tolino and many more (only limited: Kindle).
The file format PDF always displays a book page identically on any hardware. This makes PDF suitable for complex layouts such as those used in textbooks and reference books (images, tables, columns, footnotes). Unfortunately, on the small screens of e-readers or smartphones, PDFs are rather annoying, requiring too much scrolling.
This eBook uses Watermark-DRM, a „soft” copy protection. This means that there are no technical restrictions to prevent illegal distribution. However, there is a personalised watermark embedded in the eBook that can be used to identify the purchaser of the eBook in the event of misuse and to provide evidence for legal purposes.
For more information, see our eBook Help page.