FREELessons: 22Length: 3.6 hours

Next lesson playing in 5 seconds

  • Overview
  • Transcript

3.3 Unit Testing

In this lesson, we learn how to use the popular JUnit testing framework to write unit tests for our CreditCard class to ensure that it’s working properly. We’ll also write a CreditCardTester class, which can be used to run our program within the console.