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.
leapYear
- the original instant demo Leap Year exampleleapYear2
- the extended TDD example around leap yearswordcount
- the word count application TDD demoarticleSender
- lightweight demonstration of MockitoarticleSender2
- MockitoJUnitRunner refactor of the demoassertions
- various ways of performing assertions with JUnit, Hamcrest and AssertJ along with asserting for exception and timeoutleapyearparameterized
- conversion of leap year to use parameterized runners - both JUnit's own and JUnitParamstestfolder
- examples of both@Before
and@After
being used as well as the@Rule
forTemporaryFolder
spectrum
- a simple walkthrough of theSpectrum
JUnit runner using the same rectangle library as used in theassertions
examples.springcontext
- example of building a spring context based test incrementallyspringweb
- a worked example of building a web application - in this case a REST API - test first with Spring Testmockitorevisited
- examples of varioius options when using mockito