Skip to content

A java project to show unit test, stub and mocking with mockito

Notifications You must be signed in to change notification settings

cmput402-w19/Week2LabMocking

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Week2LabMocking

A java project to show unit test, stub and mocking with mockito

Objectives:

We want to build a HR software.

Our team has been assigned the following tasks:

  1. Given a employee's full name, we want to capitalize the name (Independent implementation). We don't have to depend on anyone.

  2. How many employees are from Edmonton? (So there is an online service that returns a list of all employees' addresses! Not our headache. We need to implement a method that checks for Edmonton, and returns the list. But what if it takes too much time to return results by the service? Everytime we run our test suite, it will take a lot of time to execute because of the service bottleneck.

  3. How many emplyees have salary > 50K (Another team is developing a service that returns list of all the salaries, but they are not done yet). How can we filter the salary if that service from other team is not completed yet? More importantly, how would we know if our filtering implementation is correct.

About

A java project to show unit test, stub and mocking with mockito

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages