# Unit Testing

In this chapter, we will discuss the Software Development Lifecycle (SDLC) and the role that testing has in it.

Updated: November 16, 2026

## [SDLC](https://www.ask-codey.com/courses/java-full-stack-bootcamp/topics/sdlc)

1. [SDLC](https://www.ask-codey.com/lessons/sdlc) (Novice): The five phases of the software development lifecycle (requirements, design, code, test, deploy), and how Agile and test-driven development change their order.

## [Unit Testing](https://www.ask-codey.com/courses/java-full-stack-bootcamp/topics/unit-testing)

1. [Unit Testing: an overview](https://www.ask-codey.com/lessons/unit-testing-an-overview) (Novice): What a unit test is, and why small classes with clear responsibilities can be tested on their own.
2. [JUnit Testing Framework](https://www.ask-codey.com/lessons/unit-testing-junit-testing-framework) (Apprentice): JUnit gives you a ready-made test runner, and you write one test class for each class you want to test.
3. [Planning Unit Tests](https://www.ask-codey.com/lessons/unit-testing-planning-unit-tests) (Apprentice): Plan unit tests from the requirements as a list of scenarios, each with its pre-conditions, inputs, expected output and expected property values.
4. [Adding Test Classes](https://www.ask-codey.com/lessons/unit-testing-adding-test-classes) (Apprentice): Add the JUnit dependency to pom.xml, then let IntelliJ generate a test class for the class you want to test.
5. [Writing Tests](https://www.ask-codey.com/lessons/unit-testing-writing-tests) (Apprentice): Write a JUnit test by marking it with @Test, giving it a descriptive name, and laying it out as Arrange, Act, Assert.

Source: https://www.ask-codey.com/courses/java-full-stack-bootcamp/chapters/unit-testing
