/schedule-domain-junit-spock

An example domain for scheduling doctor-patient appointments with tests in both JUnit 5 and Spock.

Primary LanguageJava

Schedule domain - JUnit, Spock

One domain, 2 testing frameworks, 3 JVM languages.

Example for JUnit 5 vs. Spock tech talk.

Problem

Mixing doctors and patients together: EventStorming session

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...