Chapter 6: Unit Testing
Major Concepts
Upon completing all the content in this chapter, you should be able to do the following:
- Write unit tests to verify the behavior of methods
- Identify proper behaviors for which a test should be written
- Understand the importance of testing in creating well-functioning code
- Use test-driven development to define the behavior of code before writing it, and to ensure that code is properly tested
- Use JUnit to create tests
Key Terminology
Throughout this lesson you should make note of the following terms and their definitions as you read the content on the page.
Testing in Java
- Automated testing
- unit testing
- JUnit
- refactoring
JUnit
- annotations
- dependencies