https://github.com/mat3e/schedule-domain-junit-spock
An example domain for scheduling doctor-patient appointments with tests in both JUnit 5 and Spock.
https://github.com/mat3e/schedule-domain-junit-spock
Last synced: over 1 year ago
JSON representation
An example domain for scheduling doctor-patient appointments with tests in both JUnit 5 and Spock.
- Host: GitHub
- URL: https://github.com/mat3e/schedule-domain-junit-spock
- Owner: mat3e
- Created: 2020-03-07T21:40:10.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-09-04T22:04:02.000Z (almost 6 years ago)
- Last Synced: 2024-04-14T07:38:53.494Z (over 2 years ago)
- Language: Java
- Size: 1.43 MB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Schedule domain - JUnit, Spock
One domain, 2 testing frameworks, 3 JVM languages.
Example for [JUnit 5 vs. Spock](https://github.com/mat3e/talks/tree/master/docs/junit-spock) tech talk.
## Problem
Mixing doctors and patients together:
[](./schedule.png)
At the beginning I thought about "override schedule entry" action, but it appeared it's simpler to erase something and create new entries instead.
## JUnit 5
Tests under `src/test/java`, ending with `Test`.
## Spock
Tests under `src/test/groovy`, ending with `Spec`. It's more convenient to use Spock with Groovy. I don't know how to use it with something else anyway...