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.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Notes
- 1.
Or at least it won the Betamax vs. VHS wars against frameworks like TestNG and others.
- 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.
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2019 Michael T. Minella
About this chapter
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
DOI: https://doi.org/10.1007/978-1-4842-3724-3_13
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-3723-6
Online ISBN: 978-1-4842-3724-3
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)