Skip to main content

Short Introduction to JUnit 5

  • Chapter
  • First Online:
Java Challenges
  • 2334 Accesses

Abstract

JUnit is a framework written in Java that supports the creation and automation of test cases. It is easy to learn and takes a lot of work of writing and managing test cases. In particular, only the logic for the test cases themselves needs to be implemented. Thereby the framework supports various methods with which test assertions can be set up and evaluated.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

eBook
USD 16.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 69.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    For (very) large number of values, it is not a good idea to check all of them. This often significantly increases the unit tests’ execution time without providing any (greater) added value. It is especially recommended to use representatives from equivalence classes, which should drastically reduce the number of tests needed. For details, refer to my book Der Weg zum Java-Profi [Ind20a].

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2022 The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

Cite this chapter

Inden, M. (2022). Short Introduction to JUnit 5. In: Java Challenges. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-7395-1_13

Download citation

Publish with us

Policies and ethics