LinesContentMatchers

trait LinesContentMatchers extends LinesContentBaseMatchers with LinesContentBeHaveMatchers
Companion:
object
trait LinesContentBeHaveMatchers
trait BeHaveMatchers
trait LinesContentBaseMatchers
trait SeqsContents
trait Expectations
trait ExpectationsDescription
trait TypedEqual
trait ExpectationsCreation
trait MatchResultStackTrace
trait DifferenceFilters
class Object
trait Matchable
class Any

Type members

Inherited classlikes

class Descriptible[T](value: => T)
class ExpectationDescription(description: String)
case class FirstNDifferencesFilter(n: Int)
Inherited from:
DifferenceFilters
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

Inherited from:
LinesContentBaseMatchers
class LinesContentResultMatcher[L1](result: MatchResult[L1])(implicit evidence$12: LinesContent[L1])
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)]
class TypedEqualExpectation[T](t: => T)
Inherited from:
TypedEqual

Value members

Inherited methods

def be: NeutralMatcher[Any]
Inherited from:
BeHaveMatchers
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

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

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

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

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

an Expectable with a description function

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

an Expectable with a description function

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

an Expectable with a description

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

an Expectable

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

an Expectable with a function to show the element T

Inherited from:
ExpectationsCreation
def have: NeutralMatcher[Any]
Inherited from:
BeHaveMatchers
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

Inherited from:
LinesContentBaseMatchers
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

Inherited from:
LinesContentBaseMatchers
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

Inherited from:
ExpectationsCreation
def not: NotMatcher[Any]
Inherited from:
BeHaveMatchers
def sameLinesAs[L1 : LinesContent, L2 : LinesContent](ls2: L2): LinesComparisonMatcher[L1, L2]
Inherited from:
LinesContentBeHaveMatchers
protected def sandboxMatchResult[T](mr: => MatchResult[T]): MatchResult[T]
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

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

Inherited from:
ExpectationsDescription
implicit def describeExpectation(description: String): ExpectationDescription
Inherited from:
ExpectationsDescription
implicit protected val fileContentForMatchers: LinesContent[File]
Inherited from:
LinesContentBaseMatchers
implicit protected def seqContentForMatchers[T]: LinesContent[Seq[T]]
Inherited from:
SeqsContents
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

Inherited from:
LinesContentBeHaveMatchers
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

Inherited from:
TypedEqual