Delete ExampleSpockTest.groovy

This commit is contained in:
Loredana Crusoveanu 2019-03-03 09:16:36 +02:00 committed by GitHub
parent 24a3fa2ae7
commit 9611f5a5cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 26 deletions

View File

@ -1,26 +0,0 @@
package mocks
import spock.lang.Specification
class ExampleSpockTest extends Specification {
CharacterCalculator characterCalculator
def setup() {
characterCalculator = new CharacterCalculator()
}
def 'should calculate character occurrences in given string'() {
given:
char characterToCount = 'o'
String value = 'Hello world!'
when:
int result = characterCalculator.countCharacterInString(value, characterToCount)
then:
result == 2
}
}