org.specs2.runner

NotifierRunner

case class NotifierRunner (notifier: Notifier) extends ClassRunner with Product with Serializable

This runner can be used with any class implementing the Notifier trait

Self Type
NotifierRunner
Linear Supertypes
Serializable, Serializable, Product, Equals, ClassRunner, ConsoleOutput, Classes, Output, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. NotifierRunner
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. ClassRunner
  7. ConsoleOutput
  8. Classes
  9. Output
  10. AnyRef
  11. Any
Visibility
  1. Public
  2. All

Instance Constructors

  1. new NotifierRunner (notifier: Notifier)

Value Members

  1. def != (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  2. def != (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  3. def ## (): Int

    Attributes
    final
    Definition Classes
    AnyRef → Any
  4. def == (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  5. def == (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  6. def apply (specifications: SpecificationStructure*)(implicit args: Arguments = Arguments()): Either[Reporter, Unit]

    This method can be called directly from the console with the specs2.

    This method can be called directly from the console with the specs2.run object:

    > specs2.run(spec1, spec2) or > import specs2._ > run(spec1, spec2)

    If you want to pass specific arguments you can pass:

    > import specs2.args._ > specs2.run(spec1)(nocolor)

    Or you can set specific default with an implicit value:

    > import specs2.args._ > implicit val myargs = nocolor > specs2.run(spec1)

    Definition Classes
    ClassRunner
  7. def asInstanceOf [T0] : T0

    Attributes
    final
    Definition Classes
    Any
  8. def canEqual (arg0: Any): Boolean

    Definition Classes
    NotifierRunner → Equals
  9. def clone (): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  10. def create [T <: AnyRef] (className: String = "", classLoader: ClassLoader = ...)(implicit m: ClassManifest[T]): Either[Throwable, T]

    returns

    an instance of a given class, returning either the instance, or an exception

    Definition Classes
    Classes
  11. def createObject [T <: AnyRef] (className: String, printMessage: Boolean, printStackTrace: Boolean)(implicit m: ClassManifest[T]): Option[T]

    A system property 'debugCreateObject' can be set to override the printMessage and printStackTrace parameters so that the exception message and stacktrace are printed when the object can't be created

    A system property 'debugCreateObject' can be set to override the printMessage and printStackTrace parameters so that the exception message and stacktrace are printed when the object can't be created

    returns

    an instance of a given class and optionally print message and/or the stacktrace if the class can't be loaded.

    Definition Classes
    Classes
  12. def createObject [T <: AnyRef] (className: String, printMessage: Boolean)(implicit m: ClassManifest[T]): Option[T]

    returns

    an instance of a given class and optionally print message if the class can't be loaded

    Definition Classes
    Classes
  13. def createObject [T <: AnyRef] (className: String)(implicit m: ClassManifest[T]): Option[T]

    returns

    an instance of a given class

    Definition Classes
    Classes
  14. def createSpecification (className: String, classLoader: ClassLoader = ...): SpecificationStructure

    Attributes
    protected
    Definition Classes
    ClassRunner
  15. def eq (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  16. def equals (arg0: Any): Boolean

    Definition Classes
    NotifierRunner → Equals → AnyRef → Any
  17. val errorHandler : PartialFunction[Throwable, Unit]

    Attributes
    protected
    Definition Classes
    ClassRunner
  18. def finalize (): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  19. def flush (): Unit

    flush the content if necessary

    flush the content if necessary

    Definition Classes
    ConsoleOutput → Output
  20. def getClass (): java.lang.Class[_]

    Attributes
    final
    Definition Classes
    AnyRef → Any
  21. def hashCode (): Int

    Definition Classes
    NotifierRunner → AnyRef → Any
  22. def isInstanceOf [T0] : Boolean

    Attributes
    final
    Definition Classes
    Any
  23. def main (arguments: Array[String]): Either[Reporter, Unit]

    Definition Classes
    ClassRunner
  24. def ne (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  25. val notifier : Notifier

  26. def notify (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  27. def notifyAll (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  28. def print (m: Any): Unit

    print an object with no newline

    print an object with no newline

    Definition Classes
    Output
  29. def printStackTrace (t: Throwable): Unit

    print stacktraces

    print stacktraces

    Definition Classes
    Output
  30. def printf (s: String, args: Any*): Unit

    print several objects according to a format string (see Console.

    print several objects according to a format string (see Console.printf)

    Definition Classes
    ConsoleOutput → Output
  31. def println (m: Any): Unit

    print an object with a newline

    print an object with a newline

    Definition Classes
    Output
  32. def productArity : Int

    Definition Classes
    NotifierRunner → Product
  33. def productElement (arg0: Int): Any

    Definition Classes
    NotifierRunner → Product
  34. def productIterator : Iterator[Any]

    Definition Classes
    Product
  35. def productPrefix : String

    Definition Classes
    NotifierRunner → Product
  36. lazy val reporter : Reporter

    Definition Classes
    NotifierRunner → ClassRunner
  37. def start (arguments: String*): Either[Reporter, Unit]

    Definition Classes
    ClassRunner
  38. def synchronized [T0] (arg0: ⇒ T0): T0

    Attributes
    final
    Definition Classes
    AnyRef
  39. def toString (): String

    Definition Classes
    NotifierRunner → AnyRef → Any
  40. def tryToCreateObject [T <: AnyRef] (className: String, printMessage: Boolean = true, printStackTrace: Boolean = true, loader: ClassLoader = ...)(implicit m: ClassManifest[T]): Option[T]

    Try to create an instance of a given class by using whatever constructor is available and trying to instantiate the first parameter recursively if there is a parameter for that constructor.

    Try to create an instance of a given class by using whatever constructor is available and trying to instantiate the first parameter recursively if there is a parameter for that constructor.

    This is useful to instantiate nested classes which are referencing their outer class in their constructor

    Definition Classes
    Classes
  41. def wait (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  42. def wait (arg0: Long, arg1: Int): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  43. def wait (arg0: Long): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()

Deprecated Value Members

  1. def productElements : Iterator[Any]

    Definition Classes
    Product
    Annotations
    @deprecated
    Deprecated

    use productIterator instead

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from ClassRunner

Inherited from ConsoleOutput

Inherited from Classes

Inherited from Output

Inherited from AnyRef

Inherited from Any