Spock Web Console

subscribe to the feed Subscribe
Cardinalities of N invovations (via #spockwebconsole)
tweet this script Tweet

Cardinalities of N invovations

Published 6 months ago by Jayasankar with tags invocation cardinalities
Actions  ➤ Edit In Console Back To Console Show/Hide Line Numbers View Recent Scripts
import spock.lang.*

// Hit 'Run Script' below
class MyFirstSpec extends Specification {
  def "should return different value"() {
    given:
        List list = Mock()
    when:    
        list.size()
        list.size()
    then:
        _ * list.size()
    }
}