Skip to content

Commit

Permalink
Merge pull request #161 from MansurAshraf/develop
Browse files Browse the repository at this point in the history
added json4s to project aggregate
  • Loading branch information
jcoveney committed Feb 5, 2014
2 parents a37923c + da70498 commit 2a3cf7e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ package com.twitter.bijection.json4s

import org.scalacheck.Properties
import com.twitter.bijection.{Injection, BaseProperties}
import Json4sInjections._

import org.json4s.JsonAST._
import org.json4s.JsonAST.JString

Expand Down Expand Up @@ -51,7 +51,16 @@ with BaseProperties {

def roundTripJValueToString(implicit inj: Injection[JValue, String]) = isLooseInjection[JValue, String]

property("round trip Case Class to Json") = roundTripCaseClassToJson
property("round trip Case Class to JValue") = roundTripCaseClassToJValue
property("round trip JValue to String") = roundTripJValueToString
property("round trip Case Class to Json") = {
import Json4sInjections.caseClass2Json
roundTripCaseClassToJson
}
property("round trip Case Class to JValue") = {
import Json4sInjections.caseClass2JValue
roundTripCaseClassToJValue
}
property("round trip JValue to String") = {
import Json4sInjections.jvalue2Json
roundTripJValueToString
}
}
3 changes: 2 additions & 1 deletion project/Build.scala
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,8 @@ object BijectionBuild extends Build {
bijectionNetty,
bijectionAvro,
bijectionHbase,
bijectionJodaTime
bijectionJodaTime,
bijectionJson4s
)

def module(name: String) = {
Expand Down

0 comments on commit 2a3cf7e

Please sign in to comment.