diff --git a/build.sbt b/build.sbt index d355a24..be13bc5 100644 --- a/build.sbt +++ b/build.sbt @@ -10,6 +10,7 @@ libraryDependencies ++= Seq( "org.apache.jena" % "jena-arq" % "3.6.0", + "org.apache.jena" % "jena-cmds" % "3.6.0", "com.github.scopt" %% "scopt" % "3.7.0", "org.scala-lang.modules" %% "scala-xml" % "1.0.6" ) @@ -18,6 +19,7 @@ assemblyMergeStrategy in assembly := { case PathList("org", "apache", "commons", "logging", xs @ _*) => MergeStrategy.first + case PathList("org", "apache", "jena", "tdb", "tdb-properties.xml") => MergeStrategy.first case x => val oldStrategy = (assemblyMergeStrategy in assembly).value oldStrategy(x) diff --git a/src/main/scala/uk/org/floop/sparqlTestRunner/Run.scala b/src/main/scala/uk/org/floop/sparqlTestRunner/Run.scala index 9bcddec..e5aee5f 100644 --- a/src/main/scala/uk/org/floop/sparqlTestRunner/Run.scala +++ b/src/main/scala/uk/org/floop/sparqlTestRunner/Run.scala @@ -122,9 +122,9 @@ val result = exec.execAsk() val timeTaken = (System.currentTimeMillis() - timeTestStart).toFloat / 1000 testCases = testCases ++ { - if (!result) { + if (result) { errors += 1 - System.err.println(s"Testcase $comment\nExpected ASK query to return TRUE") + System.err.println(s"Testcase $comment\nExpected ASK query to return FALSE") }} } else {