An open API service indexing awesome lists of open source software.

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.

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:
[![EventStorming session](./schedule.png)](./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...