package matcher
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- matcher
- ReturnsSyntax
- ExpectationsCreation
- MatchResultStackTrace
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Type Members
- trait DependencyBaseMatchers extends LayersAnalysis
- trait DependencyBeHaveMatchers extends BeHaveMatchers
- trait DependencyMatchers extends DependencyBaseMatchers with DependencyBeHaveMatchers
The dependency matchers trait provides a way to specify the dependencies that should be verified in your project and then to check that there's no unwanted dependency in the code.
The dependency matchers trait provides a way to specify the dependencies that should be verified in your project and then to check that there's no unwanted dependency in the code.
It does so by:
- specifying the dependencies as "layers" where a package name declared in one layer can only be dependent on a package name declared in a lower layer
- using the scala compiler BuildManager class to recompile the files and get dependency analysis data
Usage:
layers( "package1", layer("package2", "package3", "package4"), layer("package6", "package7") ) must beRespected
- implicit class Returns[T] extends AnyRef
- Definition Classes
- ReturnsSyntax
Value Members
- def checkFailure[T](m: MatchResult[T]): MatchResult[T]
- Attributes
- protected
- Definition Classes
- ExpectationsCreation
- def checkMatchResultFailure[T](m: MatchResult[T]): MatchResult[T]
- Attributes
- protected
- Definition Classes
- ExpectationsCreation
- def checkResultFailure(r: => Result): Result
- Attributes
- protected
- Definition Classes
- ExpectationsCreation
- def createExpectable[T](t: => T, alias: Option[(String) => String]): Expectable[T]
- Definition Classes
- ExpectationsCreation
- def createExpectable[T](t: => T, alias: (String) => String): Expectable[T]
- Definition Classes
- ExpectationsCreation
- def createExpectable[T](t: => T, alias: => String): Expectable[T]
- Definition Classes
- ExpectationsCreation
- def createExpectable[T](t: => T): Expectable[T]
- Definition Classes
- ExpectationsCreation
- def createExpectableWithShowAs[T](t: => T, showAs: => String): Expectable[T]
- Definition Classes
- ExpectationsCreation
- def mapMatchResult[T](m: MatchResult[T]): MatchResult[T]
- Attributes
- protected
- Definition Classes
- ExpectationsCreation
- def sandboxMatchResult[T](mr: => MatchResult[T]): MatchResult[T]
- Attributes
- protected
- Definition Classes
- ExpectationsCreation
- def setStacktrace[T](m: MatchResult[T]): MatchResult[T]
- Attributes
- protected
- Definition Classes
- MatchResultStackTrace