Spock Web Console

subscribe to the feed Subscribe
Abstract spec demo (via #spockwebconsole)
tweet this script Tweet

Abstract spec demo

Published 1 year ago by Nick Bensema
Actions  ➤ Edit In Console Back To Console Show/Hide Line Numbers View Recent Scripts
import spock.lang.*

abstract class AbstractSpec extends Specification {
    def setup() {
        println "Logging in"
        selectProject()
        println "Switch to designer window"
    }
    abstract void selectProject()
}

class MyFirstOOSpec extends AbstractSpec {
  void selectProject() {
    println "Select project for test"
  }
  def "Test text boxes"() {
    expect:
        99 == 99
  }
  def "Test radio bu"() {
    expect:
        1 == 1
  }
}