/instant-tdd

Training Examples

Primary LanguageJava

Training Examples for Instant TDD

These are the training examples to accompany the Udemy course Instant TDD with Ashley Frieze.

Each of the folders within this repository is an appropriately example from the course with a name that matches the one used in the training video.

Examples

  • leapYear - the original instant demo Leap Year example
  • leapYear2 - the extended TDD example around leap years
  • wordcount - the word count application TDD demo
  • articleSender - lightweight demonstration of Mockito
  • articleSender2 - MockitoJUnitRunner refactor of the demo
  • assertions - various ways of performing assertions with JUnit, Hamcrest and AssertJ along with asserting for exception and timeout
  • leapyearparameterized - conversion of leap year to use parameterized runners - both JUnit's own and JUnitParams
  • testfolder - examples of both @Before and @After being used as well as the @Rule for TemporaryFolder
  • spectrum - a simple walkthrough of the Spectrum JUnit runner using the same rectangle library as used in the assertions examples.
  • springcontext - example of building a spring context based test incrementally
  • springweb - a worked example of building a web application - in this case a REST API - test first with Spring Test
  • mockitorevisited - examples of varioius options when using mockito