Skip to content

Commit e7d526e

Browse files
committed
Stub out initial matcher
1 parent e82ee0b commit e7d526e

File tree

9 files changed

+24
-44
lines changed

9 files changed

+24
-44
lines changed

build.sbt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ crossScalaVersions := Seq("2.11.11", "2.12.3")
88

99
// dependencies common for all sub-projects
1010
libraryDependencies ++= Seq(
11-
"org.scalatest" %% "scalatest" % "3.0.4" % "test"
11+
"org.scala-lang.modules" %% "scala-xml" % "1.0.6",
12+
"org.scalatest" %% "scalatest" % "3.0.4" % "test"
1213
)
1314

1415
lazy val xmlCompare = project

xml-compare/build.sbt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1 @@
1-
name := "scalaxmlcompareXmlcompare"
2-
3-
libraryDependencies ++= Seq(
4-
5-
)
1+
name := "xml-compare"

xml-compare/src/main/scala/software/purpledragon/scalaxmlcompare/xmlcompare/Xmlcompare.scala

Lines changed: 0 additions & 7 deletions
This file was deleted.

xml-compare/src/test/scala/software/purpledragon/scalaxmlcompare/xmlcompare/XmlcompareSpec.scala

Lines changed: 0 additions & 11 deletions
This file was deleted.

xml-scalatest/build.sbt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
name := "scalaxmlcompareXmlscalatest"
1+
name := "xml-scalatest"
22

3+
// need to build against scalatest
34
libraryDependencies ++= Seq(
4-
5+
"org.scalatest" %% "scalatest" % "3.0.4" % "provided"
56
)

xml-scalatest/src/main/scala/software/purpledragon/scalaxmlcompare/xmlscalatest/Xmlscalatest.scala

Lines changed: 0 additions & 7 deletions
This file was deleted.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
package software.purpledragon.xml.scalatest
2+
3+
import org.scalatest.matchers.Matcher
4+
5+
import scala.xml.Node
6+
7+
trait XmlMatchers {
8+
def beXml(node: Node): Matcher[Node] = ???
9+
10+
def beExactXml(node: Node): Matcher[Node] = ???
11+
}

xml-scalatest/src/test/scala/software/purpledragon/scalaxmlcompare/xmlscalatest/XmlscalatestSpec.scala

Lines changed: 0 additions & 11 deletions
This file was deleted.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package software.purpledragon.xml.scalatest
2+
3+
import org.scalatest.{FlatSpec, Matchers}
4+
5+
class XmlMatchersSpec extends FlatSpec with Matchers with XmlMatchers {
6+
7+
}

0 commit comments

Comments
 (0)