- Overview
- Junit Tasks
- Task 1: Wallet Coverage
- Task 2: DrinkVendingMachine Coverage
- Task 3: Project Code Coverage
Complete the tasks below...
"Test the Wallet
class from: vendormachine.users.util.Wallet
."
Goal:
- Achieve 80% or more code/line coverage for the 'Wallet' class.
"Test the DrinkVendingMachine
class from: vendormachine.vendors.DrinkVendingMachine
."
Goals:
- Achieve 80% or more code/line coverage for the
DrinkVendingMachine
class. - Analyse code and add missing methods. (TDD)
"Add and complete tests for the 'vendormachine' project."
Goals:
- Achieve 80% or more 80% project code coverage.
- Analyse code and add missing methods. (TDD)
For useful examples see:
Samplejunit
package for Junit structure example.src/test/java/vendormachine/PersonTest.java
for an example of 100% coverage.