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

org.specs2.mutable.Around.scala Maven / Gradle / Ivy

There is a newer version: 3.7
Show newest version
package org.specs2
package mutable

import execute._
/**
 * This trait adds the possibility to execute the around behavior around the body of the context.
 * 
 * Since the delayedInit method doesn't return a Result, this only works with mutable specifications where results are
 * thrown as exceptions 
 */
trait Around extends org.specs2.specification.Around with DelayedInit {
  /** use effectively to re-throw FailureExceptions if x failed */
  override def delayedInit(x: => Unit): Unit = ResultExecution.effectively(around { x; Success() })
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy