LinesContentMatchers

org.specs2.matcher.LinesContentMatchers
See theLinesContentMatchers companion trait

Attributes

Companion
trait
Graph
Supertypes
trait Expectations
trait ExpectationsDescription
trait TypedEqual
trait ExpectationsCreation
trait MatchResultStackTrace
trait DifferenceFilters
class Object
trait Matchable
class Any
Show all
Self type

Members list

Type members

Inherited classlikes

class Descriptible[T](value: => T)

Attributes

Inherited from:
ExpectationsDescription
Supertypes
class Object
trait Matchable
class Any
class ExpectationDescription(description: String)

Attributes

Inherited from:
ExpectationsDescription
Supertypes
class Object
trait Matchable
class Any
case class FirstNDifferencesFilter(n: Int)

Attributes

Inherited from:
DifferenceFilters
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class LinesComparisonMatcher[L1, L2](ls2: L2, all: Boolean, ordered: Boolean, colors: Boolean, filter: DifferenceFilter)(implicit evidence$7: LinesContent[L1], evidence$8: LinesContent[L2]) extends Matcher[L1]

Matcher to compare the contents of line contents

Matcher to compare the contents of line contents

Attributes

Inherited from:
LinesContentBaseMatchers (hidden)
Supertypes
trait Serializable
trait Product
trait Equals
trait Matcher[L1]
class Object
trait Matchable
class Any
Show all
class LinesContentResultMatcher[L1](result: MatchResult[L1])(implicit evidence$12: LinesContent[L1])

Attributes

Inherited from:
LinesContentBeHaveMatchers (hidden)
Supertypes
class Object
trait Matchable
class Any
case class LinesPairComparisonMatcher[L1, L2](all: Boolean, ordered: Boolean, colors: Boolean, filter: DifferenceFilter)(implicit evidence$9: LinesContent[L1], evidence$10: LinesContent[L2]) extends Matcher[(L1, L2)]

Attributes

Inherited from:
LinesContentBaseMatchers (hidden)
Supertypes
trait Serializable
trait Product
trait Equals
trait Matcher[(L1, L2)]
class Object
trait Matchable
class Any
Show all
class TypedEqualExpectation[T](t: => T)

Attributes

Inherited from:
TypedEqual
Supertypes
class Object
trait Matchable
class Any

Value members

Inherited methods

def be: NeutralMatcher[Any]

Attributes

Inherited from:
BeHaveMatchers (hidden)
protected def checkFailure[T](m: MatchResult[T]): MatchResult[T]

this method can be overridden to throw exceptions when checking the match result

this method can be overridden to throw exceptions when checking the match result

Attributes

Inherited from:
ExpectationsCreation
protected def checkMatchResultFailure[T](m: MatchResult[T]): MatchResult[T]

this method can be overridden to throw exceptions when checking the match result

this method can be overridden to throw exceptions when checking the match result

Attributes

Inherited from:
ExpectationsCreation
protected def checkResultFailure(r: => Result): Result

this method can be overridden to throw exceptions when checking the result

this method can be overridden to throw exceptions when checking the result

Attributes

Inherited from:
ExpectationsCreation
def containLines[L1 : LinesContent, L2 : LinesContent](ls2: L2): LinesComparisonMatcher[L1, L2]

matches if 1 lines content contains the lines of the other one

matches if 1 lines content contains the lines of the other one

Attributes

Inherited from:
LinesContentBaseMatchers (hidden)
def createExpectable[T](t: => T, alias: Option[String => String]): Expectable[T]

Attributes

Returns

an Expectable with a description function

Inherited from:
ExpectationsCreation
def createExpectable[T](t: => T, alias: String => String): Expectable[T]

Attributes

Returns

an Expectable with a description function

Inherited from:
ExpectationsCreation
def createExpectable[T](t: => T, alias: => String): Expectable[T]

Attributes

Returns

an Expectable with a description

Inherited from:
ExpectationsCreation
def createExpectable[T](t: => T): Expectable[T]

Attributes

Returns

an Expectable

Inherited from:
ExpectationsCreation
def createExpectableWithShowAs[T](t: => T, showAs: => String): Expectable[T]

Attributes

Returns

an Expectable with a function to show the element T

Inherited from:
ExpectationsCreation
def have: NeutralMatcher[Any]

Attributes

Inherited from:
BeHaveMatchers (hidden)
def haveSameLines[L1 : LinesContent, L2 : LinesContent]: LinesPairComparisonMatcher[L1, L2]

matches if 2 contents, as a pair, have the same lines

matches if 2 contents, as a pair, have the same lines

Attributes

Inherited from:
LinesContentBaseMatchers (hidden)
def haveSameLinesAs[L1 : LinesContent, L2 : LinesContent](ls2: L2): LinesComparisonMatcher[L1, L2]

matches if 2 contents have the same lines

matches if 2 contents have the same lines

Attributes

Inherited from:
LinesContentBaseMatchers (hidden)
protected def mapMatchResult[T](m: MatchResult[T]): MatchResult[T]

this method can be overridden to intercept a MatchResult and change its message before it is thrown

this method can be overridden to intercept a MatchResult and change its message before it is thrown

Attributes

Inherited from:
ExpectationsCreation
def not: NotMatcher[Any]

Attributes

Inherited from:
BeHaveMatchers (hidden)
def sameLinesAs[L1 : LinesContent, L2 : LinesContent](ls2: L2): LinesComparisonMatcher[L1, L2]

Attributes

Inherited from:
LinesContentBeHaveMatchers (hidden)
protected def sandboxMatchResult[T](mr: => MatchResult[T]): MatchResult[T]

Attributes

Returns

the match result without any side-effects

Inherited from:
ExpectationsCreation
protected def setStacktrace[T](m: MatchResult[T]): MatchResult[T]

this method can be overridden to avoid filling-in a stacktrace indicating the location of the result

this method can be overridden to avoid filling-in a stacktrace indicating the location of the result

Attributes

Inherited from:
MatchResultStackTrace

Implicits

Inherited implicits

implicit def describe[T](t: => T): Descriptible[T]

describe a value with the aka method

describe a value with the aka method

Attributes

Inherited from:
ExpectationsDescription
implicit def describeExpectation(description: String): ExpectationDescription

Attributes

Inherited from:
ExpectationsDescription
implicit protected val fileContentForMatchers: LinesContent[File]

Attributes

Inherited from:
LinesContentBaseMatchers (hidden)
implicit protected def seqContentForMatchers[T]: LinesContent[Seq[T]]

Attributes

Inherited from:
SeqsContents (hidden)

Attributes

Inherited from:
DifferenceFilters
implicit def toLinesContentResultMatcher[L1 : LinesContent](result: MatchResult[L1]): LinesContentResultMatcher[L1]

matcher aliases and implicits to use with BeVerb and HaveVerb

matcher aliases and implicits to use with BeVerb and HaveVerb

Attributes

Inherited from:
LinesContentBeHaveMatchers (hidden)
implicit def typedEqualExpectation[T](t: => T): TypedEqualExpectation[T]

A value can be tested against another with the === operator. It is equivalent to writing a must_== b

A value can be tested against another with the === operator. It is equivalent to writing a must_== b

Attributes

Inherited from:
TypedEqual