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:
-
Given a employee's full name, we want to capitalize the name (Independent implementation). We don't have to depend on anyone.
-
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.
-
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.