Training
>
Courseware
>
jUnit
Summary
JUnit training courseware provides an introduction to regression testing framework.
Students will learn about the unit testing, JUnit framework and how to set it up and use it with your Java projects. Students will also get familiar with the test-driven development as a methodology for writing highly reliable Java code.
Description
Length
1 day, 27 pages
Audience
Java Developers and Quality Assurance Engineers.
Prerequisites
Solid understanding of Java technology.
Outline
On Testing
- Why testing?
- Test, Test, and Test Some More
Introducing JUnit
- JUnit 101
- Using JUnit within Eclipse
- Assertions in TestCase
- Composing Test Cases
- Combining Test Suites
- Showing Test Results
Why JUnit?
- Testing with JUnit – Advantages
- Testing with JUnit – Disadvantages
Test-Driven Development
- Exercise – Testing Simple Data Structures
- Exercise – Testing Complex Data Structures
- Exercise – Testing XML Parsing with Java
- Testing with JUnit 4 and Java 5