All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.zalando.test.kit.Specs2ServiceKit.scala Maven / Gradle / Ivy

There is a newer version: 5.1.1
Show newest version
package org.zalando.test.kit

import org.specs2.execute._
import org.specs2.specification._
import org.specs2.specification.dsl.mutable.ActionDsl

trait Specs2ServiceKit extends BeforeAfterAll with AroundEach with TestServiceKit with ActionDsl {
  stopWhen(Error())

  def around[R: AsResult](r: => R): Result =
    BeforeAfter.create(beforeTest(), afterTest())(r)

  def beforeAll = ResultExecution.effectively {
    beforeSuite()
    Success()
  }

  def afterAll = ResultExecution.effectively {
    afterSuite()
    Success()
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy