Introduction to JUnit
Testing Java programs manually is costly and time consuming. We will introduce JUnit to allow us to write Java classes to test our Java code.
Objectives¶
- Understand the purpose of automated testing.
- Be able to create JUnit test cases.
- Be able to create test methods that describe what a class's method should do.
- Understand and use JUnit
assertmethods to test class functionality. - Understand the purpose of Test Driven Development (TDD).
Topics¶
- Testing Java Applications
- Building and Deploying Software
- JUnit
- Test Classes
- Writing
@TestMethods assertMethods@Beforeand@After- Test-Driven Development (TDD)
- Labs