org.specs2.reporter

JUnitDescriptionsFragments

Related Doc: package reporter

class JUnitDescriptionsFragments extends JUnitDescriptions[Fragment]

Descriptions for a seq of Fragments to execute

Linear Supertypes
JUnitDescriptions[Fragment], JUnitDescriptionMaker[Fragment], ExecutionOrigin, Stacktraces, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. JUnitDescriptionsFragments
  2. JUnitDescriptions
  3. JUnitDescriptionMaker
  4. ExecutionOrigin
  5. Stacktraces
  6. AnyRef
  7. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new JUnitDescriptionsFragments(className: String)

Type Members

  1. type DescribedFragment = (Fragment, Description)

    Definition Classes
    JUnitDescriptionMaker

Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  5. def asOneDescription(descriptionTree: Tree[DescribedFragment])(implicit args: Arguments = Arguments()): Description

    returns

    a Description with parent-child relationships to other Description objects from a Tree[Description]

    Definition Classes
    JUnitDescriptionMaker
  6. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def createDescription(className: String, suiteName: String = "", testName: String = "", label: String = ""): Description

    returns

    a sanitized description

    Definition Classes
    JUnitDescriptionMaker
  8. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. def foldAll(fs: Seq[Fragment])(implicit args: Arguments): DescriptionAndExamples[Fragment]

    Definition Classes
    JUnitDescriptions
  12. def fromSpecs2orScalaz: (String) ⇒ Boolean

    Definition Classes
    ExecutionOrigin
  13. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  14. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  15. def initialFragment(className: String): Text

    returns

    fragment that must be used as the root description if the specification is empty

    Definition Classes
    JUnitDescriptionsFragments → JUnitDescriptions
  16. def isExecutedFrom(name: String, st: Seq[StackTraceElement]): Boolean

    Definition Classes
    Stacktraces
  17. def isExecutedFrom(name: String): Boolean

    This method is used to determine for example if the JUnit runner is executed from Maven or within Eclipse.

    This method is used to determine for example if the JUnit runner is executed from Maven or within Eclipse. In the first the test case names don't need to have the hashcode example.

    returns

    true if this current piece of code contains name in its stacktrace.

    Definition Classes
    Stacktraces
  18. lazy val isExecutedFromAnIDE: Boolean

    return true if the current test is executed from an IDE

    return true if the current test is executed from an IDE

    Definition Classes
    ExecutionOrigin
  19. lazy val isExecutedFromEclipse: Boolean

    return true if the current test is executed with eclipse

    return true if the current test is executed with eclipse

    Definition Classes
    ExecutionOrigin
  20. lazy val isExecutedFromGradle: Boolean

    return true if the current test is executed with Gradle

    return true if the current test is executed with Gradle

    Definition Classes
    ExecutionOrigin
  21. lazy val isExecutedFromIntellij: Boolean

    return true if the current test is executed with Intellij

    return true if the current test is executed with Intellij

    Definition Classes
    ExecutionOrigin
  22. lazy val isExecutedFromMaven: Boolean

    return true if the current test is executed with Maven

    return true if the current test is executed with Maven

    Definition Classes
    ExecutionOrigin
  23. lazy val isExecutedFromSBT: Boolean

    return true if the current test is executed with sbt

    return true if the current test is executed with sbt

    Definition Classes
    ExecutionOrigin
  24. def isFromClass(classNamePredicate: (String) ⇒ Boolean, st: Seq[StackTraceElement]): Boolean

    returns

    true if there is a stacktrace element satisfying the predicate

    Definition Classes
    Stacktraces
  25. def isFromClass(classNamePredicate: (String) ⇒ Boolean): Boolean

    returns

    true if there is a stacktrace element satisfying the predicate

    Definition Classes
    Stacktraces
  26. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  27. def isSpecificationFromSpecs2orScalaz(st: Seq[StackTraceElement]): Boolean

    try to approximate if a specification is a specs2 one or scalaz one by passing name = org.specs2 or name = scalaz

    try to approximate if a specification is a specs2 one or scalaz one by passing name = org.specs2 or name = scalaz

    Definition Classes
    ExecutionOrigin
  28. def mapper(className: String): (Fragment, Seq[DescribedFragment], Int) ⇒ Option[DescribedFragment]

    This function is used to map each node in a Tree[Fragment] to a pair of (Description, Fragment)

    This function is used to map each node in a Tree[Fragment] to a pair of (Description, Fragment)

    The Int argument is the numeric label of the current TreeNode being mapped. It is used to create a unique description of the example to executed which is required by JUnit

    Definition Classes
    JUnitDescriptionsFragments → JUnitDescriptionMaker
  29. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  30. final def notify(): Unit

    Definition Classes
    AnyRef
  31. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  32. def parentPath(parentNodes: Seq[DescribedFragment]): Vector[String]

    returns

    a seq containing the path of an example without the root name

    Definition Classes
    JUnitDescriptionMaker
  33. lazy val specificationDescription: Description

    Definition Classes
    JUnitDescriptions
  34. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  35. def testName(s: String, parentNodes: Seq[String] = Seq()): String

    returns

    a test name with no newlines

    Definition Classes
    JUnitDescriptionMaker
  36. def toString(): String

    Definition Classes
    AnyRef → Any
  37. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from JUnitDescriptions[Fragment]

Inherited from JUnitDescriptionMaker[Fragment]

Inherited from ExecutionOrigin

Inherited from Stacktraces

Inherited from AnyRef

Inherited from Any

Ungrouped