Skip to content

Minimalist training for stubbing and spying on functions

Notifications You must be signed in to change notification settings

pforesi/mock-and-stub-introduction

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 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

No packages published

Languages

  • C++ 26.9%
  • JavaScript 18.7%
  • PHP 15.1%
  • QMake 14.7%
  • Java 14.0%
  • Python 10.6%