Skip to content

martinsson/mock-and-stub-introduction

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Exercice to train the basics of stubbing and mocking

There are two similar exercices.

stubSomeValues

Cover the class BirthdayService, by stubbing the Repository to return true or false depending on with what name it is called

verifySomeBehavior

Again cover BirthdayService. Since the method greeting has no return value we need to verify that mailer was called with the correct greeting phrase.

About

Minimalist training for stubbing and spying on functions

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors