Skip to content

Commit

Permalink
Removing apache commons dependency in an attempt to resolve the major…
Browse files Browse the repository at this point in the history
….minor version error.
  • Loading branch information
bathalh committed Mar 7, 2016
1 parent dc8e02a commit 3960496
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
3 changes: 1 addition & 2 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 1 addition & 3 deletions src/test/scala/spray/json/StandardFormatsSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
3 changes: 1 addition & 2 deletions src/test/scala/spray/json/TriptionSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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._
Expand All @@ -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
{
Expand Down

0 comments on commit 3960496

Please sign in to comment.