Delete ExampleSpockTest.groovy
This commit is contained in:
parent
24a3fa2ae7
commit
9611f5a5cf
|
@ -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
|
||||
}
|
||||
|
||||
|
||||
}
|
Loading…
Reference in New Issue