File tree Expand file tree Collapse file tree
src/test/scala/spray/json Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -23,8 +23,7 @@ resolvers += Opts.resolver.sonatypeReleases
2323libraryDependencies ++= Seq (
2424 " org.specs2" %% " specs2-core" % " 3.7.1" % " test" ,
2525 " org.specs2" %% " specs2-scalacheck" % " 3.7.1" % " test" ,
26- " org.scalacheck" %% " scalacheck" % " 1.12.5" % " test" ,
27- " org.apache.commons" % " commons-lang3" % " 3.3.2" % " test"
26+ " org.scalacheck" %% " scalacheck" % " 1.12.5" % " test"
2827)
2928
3029(scalacOptions in doc) ++= Seq (" -doc-title" , name.value + " " + version.value)
Original file line number Diff line number Diff line change 1616
1717package spray .json
1818
19- import org .apache .commons .lang3 .RandomStringUtils ._
2019import org .specs2 .mutable ._
21- import scala .Right
2220import scala .util .Random ._
2321
2422class StandardFormatsSpec extends Specification with DefaultJsonProtocol {
2523
26- def nextString = randomAlphanumeric( nextInt( 16 ) + 1 )
24+ def nextString = new String ( (alphanumeric take ( nextInt( 16 ) + 1 )).toArray )
2725
2826 " The optionFormat" should {
2927 " convert None to JsNull" in {
Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ package spray.json
22
33import java .util .NoSuchElementException
44
5- import org .apache .commons .lang3 .RandomStringUtils ._
65import org .specs2 .mutable ._
76
87import scala .util .Random ._
@@ -12,7 +11,7 @@ import scala.util.Random._
1211 */
1312class TriptionSpec extends Specification
1413{
15- def nextString = randomAlphanumeric( nextInt( 16 ) + 1 )
14+ def nextString = new String ( (alphanumeric take ( nextInt( 16 ) + 1 )).toArray )
1615
1716 " Basic monadic and helper function should work work:" should
1817 {
You can’t perform that action at this time.
0 commit comments