Skip to main content

Testing Batch Processes

  • Chapter
  • First Online:
The Definitive Guide to Spring Batch
  • 730 Accesses

Abstract

Testing is everyone’s favorite part of programming. The funny thing is, like most things in life, once you get good at it, testing actually is fun. It allows you to be more productive. It provides a safety net for you to try new things. Programmatic tests also give you a test bed to try new technologies (most companies don’t mind if you want to try something new in the tests but mind greatly if you try it in code that’s going to production). You’ve spent the previous ten chapters writing code without the ability to prove that any of it works. This chapter looks at how to exercise your code in a variety of ways so you can not only prove that it works as designed, but also provide a safety net for when you change it.

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

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 59.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 79.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.

    Or at least it won the Betamax vs. VHS wars against frameworks like TestNG and others.

  2. 2.

    This isn’t 100% true. PowerMock lets you mock the new operator. You can find more information on PowerMock at http://code.google.com/p/powermock/ .

  3. 3.

    https://dannorth.net/introducing-bdd/

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2019 Michael T. Minella

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

Cite this chapter

Minella, M.T. (2019). Testing Batch Processes. In: The Definitive Guide to Spring Batch. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-3724-3_13

Download citation

Publish with us

Policies and ethics