Skip to Main Content
JUnit in Action, Third Edition
book

JUnit in Action, Third Edition

by Catalin Tudose
January 2021
Intermediate to advanced content levelIntermediate to advanced
560 pages
15h 13m
English
Manning Publications
Content preview from JUnit in Action, Third Edition

1 JUnit jump-start

This chapter covers

  • Understanding JUnit
  • Installing JUnit
  • Writing your first tests
  • Running tests

Never in the field of software development was so much owed by so many to so few lines of code.

--Martin Fowler

All code needs to be tested. During development, the first thing we do is run our own programmer’s acceptance test. We code, compile, and run. When we run, we test. The test may just consist of clicking a button to see whether it brings up the expected menu or looking at a result to compare it with the expected value. Nevertheless, every day, we code, we compile, we run, and we test.

When we test, we often find issues, especially during early runs. So we code, compile, run, and test again.

Most of us quickly develop ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Test-Driven Java Development, Second Edition - Second Edition

Test-Driven Java Development, Second Edition - Second Edition

Viktor Farcic, Alex Garcia

Publisher Resources

ISBN: 9781617297045Supplemental ContentPublisher SupportOtherPublisher WebsiteSupplemental ContentPurchase Link