Spock Web Console

subscribe to the feed Subscribe
How to get around spock Data provider is null error (via #spockwebconsole)
tweet this script Tweet

How to get around spock Data provider is null error

Published 1 month ago by cgallegu@gmail.com with tags spock stackoverflow
Actions  ➤ Edit In Console Back To Console Show/Hide Line Numbers View Recent Scripts
import spock.lang.*

// Hit 'Run Script' below
class StackOverflow_50395495 extends Specification {

  @Shared
  def setupList

  def getTestData() {
     ["a", "b"]
  }
  def "sample"() {
    expect:
    expected == null

    where:
    expected << getTestData()
  }
}