Testing: 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 10 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.
KeywordsBusiness Logic Integration Test Public Class Class File JUnit Test
Unable to display preview. Download preview PDF.