Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Junit Exercises

Contents

Overview

Junit Tasks

Complete the tasks below...


Task 1

"Test the Wallet class from: vendormachine.users.util.Wallet."

Goal:

  • Achieve 80% or more code/line coverage for the 'Wallet' class.

Task 2

"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)

Task 3

"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.

About

A quick java-based system to create Junit tests around.

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages