Revision 42619ed4 logic/src/test/scala/gr/grnet/aquarium/rest/actor/RESTActorTest.scala
b/logic/src/test/scala/gr/grnet/aquarium/rest/actor/RESTActorTest.scala | ||
---|---|---|
48 | 48 |
import akka.actor.{PoisonPill, Actor} |
49 | 49 |
import gr.grnet.aquarium.logic.events.ResourceEvent |
50 | 50 |
import net.liftweb.json.JsonAST.JInt |
51 |
import gr.grnet.aquarium.util.json.JsonHelpers |
|
51 | 52 |
|
52 | 53 |
/** |
53 | 54 |
* |
... | ... | |
70 | 71 |
val stringBody = new String(bytesBody, "UTF-8") |
71 | 72 |
println("!! Got stringBody = %s".format(stringBody)) |
72 | 73 |
// Note that the response is in JSON format, so must parse it |
73 |
implicit val formats = ResourceEvent.DefaultJsonFormats
|
|
74 |
implicit val formats = JsonHelpers.DefaultJsonFormats
|
|
74 | 75 |
val jValue = net.liftweb.json.parse(stringBody) |
75 | 76 |
println("!! ==> jValue = %s".format(jValue)) |
76 | 77 |
val pongValue = jValue \ "pong" |
Also available in: Unified diff