From 39604963f28c76b55f14c4ead524921f75fe996a Mon Sep 17 00:00:00 2001 From: bathalh Date: Mon, 7 Mar 2016 14:47:20 -0600 Subject: [PATCH] Removing apache commons dependency in an attempt to resolve the major.minor version error. --- build.sbt | 3 +-- src/test/scala/spray/json/StandardFormatsSpec.scala | 4 +--- src/test/scala/spray/json/TriptionSpec.scala | 3 +-- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/build.sbt b/build.sbt index 31e39749..395c80f4 100644 --- a/build.sbt +++ b/build.sbt @@ -23,8 +23,7 @@ resolvers += Opts.resolver.sonatypeReleases libraryDependencies ++= Seq( "org.specs2" %% "specs2-core" % "3.7.1" % "test", "org.specs2" %% "specs2-scalacheck" % "3.7.1" % "test", - "org.scalacheck" %% "scalacheck" % "1.12.5" % "test", - "org.apache.commons" % "commons-lang3" % "3.3.2" % "test" + "org.scalacheck" %% "scalacheck" % "1.12.5" % "test" ) (scalacOptions in doc) ++= Seq("-doc-title", name.value + " " + version.value) diff --git a/src/test/scala/spray/json/StandardFormatsSpec.scala b/src/test/scala/spray/json/StandardFormatsSpec.scala index 9c9fcbfc..8fb96c91 100644 --- a/src/test/scala/spray/json/StandardFormatsSpec.scala +++ b/src/test/scala/spray/json/StandardFormatsSpec.scala @@ -16,14 +16,12 @@ package spray.json -import org.apache.commons.lang3.RandomStringUtils._ import org.specs2.mutable._ -import scala.Right import scala.util.Random._ class StandardFormatsSpec extends Specification with DefaultJsonProtocol { - def nextString = randomAlphanumeric( nextInt( 16 ) + 1 ) + def nextString = new String( (alphanumeric take (nextInt( 16 ) + 1)).toArray ) "The optionFormat" should { "convert None to JsNull" in { diff --git a/src/test/scala/spray/json/TriptionSpec.scala b/src/test/scala/spray/json/TriptionSpec.scala index 3d76d791..2e66c7d7 100644 --- a/src/test/scala/spray/json/TriptionSpec.scala +++ b/src/test/scala/spray/json/TriptionSpec.scala @@ -2,7 +2,6 @@ package spray.json import java.util.NoSuchElementException -import org.apache.commons.lang3.RandomStringUtils._ import org.specs2.mutable._ import scala.util.Random._ @@ -12,7 +11,7 @@ import scala.util.Random._ */ class TriptionSpec extends Specification { - def nextString = randomAlphanumeric( nextInt( 16 ) + 1 ) + def nextString = new String( (alphanumeric take (nextInt( 16 ) + 1)).toArray ) "Basic monadic and helper function should work work:" should {