StreamlinedXmlEquality

org.scalatest.StreamlinedXmlEquality
See theStreamlinedXmlEquality companion trait

Companion object that facilitates the importing of StreamlinedXmlEquality members as an alternative to mixing it the trait. One use case is to import StreamlinedXmlEquality members so you can use them in the Scala interpreter.

Attributes

Companion
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Implicits

Inherited implicits

implicit def streamlinedXmlEquality[T <: NodeSeq]: Equality[T]

Provides an implicit Equality[T] instance for any subtype of scala.xml.NodeSeq that, prior for testing for equality, will normalize the XML by removing empty text nodes and trimming non-empty text nodes.

Provides an implicit Equality[T] instance for any subtype of scala.xml.NodeSeq that, prior for testing for equality, will normalize the XML by removing empty text nodes and trimming non-empty text nodes.

See the main documentation for this trait for more details and examples.

Attributes

Returns

an Equality[T] instance that normalizes XML before testing for equality

Inherited from:
StreamlinedXmlEquality