Skip to content

Instantly share code, notes, and snippets.

@chbaranowski
Created November 27, 2014 15:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chbaranowski/94da42009e1c382cef4b to your computer and use it in GitHub Desktop.
Save chbaranowski/94da42009e1c382cef4b to your computer and use it in GitHub Desktop.
SemsterSpec.groovy
import semester.*
import spock.lang.*
class SemsterSpec extends Specification {
def "berechne die Semestergebuehrn"() {
given:
SemestergebuehrService service = new SemestergebuehrService()
when:
def gebuehr = service.getSemestergebuehr(5, 2)
then:
gebuehr == 300
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment