/** * Generated by API Builder - https://www.apibuilder.io * Service version: 1.0.1 * User agent: apibuilder app.apibuilder.io/catalystsquad/catalyst-squad-hello-world-example-api/1.0.1/scalacheck */ package com.catalystsquad.catalyst.squad.hello.world.example.api.v1.models.scalacheck import org.scalacheck.{Arbitrary, Gen} object CatalystSquadHelloWorldExampleApiScalaCheck extends CatalystSquadHelloWorldExampleApiScalaCheck { implicit def arbitraryJodaDateTime: Arbitrary[_root_.org.joda.time.DateTime] = Arbitrary(genJodaDateTime) def genJodaDateTime: Gen[_root_.org.joda.time.DateTime] = Gen.posNum[Long].map(instant => new _root_.org.joda.time.DateTime(instant)) implicit def arbitraryPlayJsObject: Arbitrary[_root_.play.api.libs.json.JsObject] = Arbitrary(genPlayJsObject) def genPlayJsObject: Gen[_root_.play.api.libs.json.JsObject] = Gen.const(_root_.play.api.libs.json.JsObject.empty) } trait CatalystSquadHelloWorldExampleApiScalaCheck { implicit def arbitraryJodaDateTime: Arbitrary[_root_.org.joda.time.DateTime] implicit def arbitraryPlayJsObject: Arbitrary[_root_.play.api.libs.json.JsObject] implicit def arbitraryHello: Arbitrary[com.catalystsquad.catalyst.squad.hello.world.example.api.v1.models.Hello] = Arbitrary(genHello) def genHello: Gen[com.catalystsquad.catalyst.squad.hello.world.example.api.v1.models.Hello] = for { id <- Arbitrary.arbitrary[_root_.java.util.UUID] name <- Arbitrary.arbitrary[String] } yield com.catalystsquad.catalyst.squad.hello.world.example.api.v1.models.Hello(id, name) implicit def arbitraryNewhello : Arbitrary[com.catalystsquad.catalyst.squad.hello.world.example.api.v1.models.Newhello] = Arbitrary(genNewhello) def genNewhello: Gen[com.catalystsquad.catalyst.squad.hello.world.example.api.v1.models.Newhello] = for { name <- Arbitrary.arbitrary[String] } yield com.catalystsquad.catalyst.squad.hello.world.example.api.v1.models.Newhello(name) }