CustomInstances

org.specs2.reporter.CustomInstances
See theCustomInstances companion object
case class CustomInstances(env: Env, loader: ClassLoader, logger: Logger)

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def createCustomInstance[T <: AnyRef](name: String, failureMessage: String => String, noRequiredMessage: String)(using m: ClassTag[T]): Operation[Option[T]]

create a custom instance

create a custom instance

Attributes

def createPrinterInstance(name: PrinterName, className: String, failureMessage: String, noRequiredMessage: String): Operation[Option[Printer]]

create a built-in specs2 printer

create a built-in specs2 printer

Attributes

def noInstance[T](message: String): Operation[Option[T]]

print a message if a class can not be instantiated

print a message if a class can not be instantiated

Attributes

def noInstanceWithException[T](message: String, t: Throwable, forceVerbose: Option[Boolean]): Operation[Option[T]]

print a message if a class can not be instantiated

print a message if a class can not be instantiated

Attributes

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product