Pruning stuff from user state
[aquarium] / src / test / scala / gr / grnet / aquarium / user / UserActorTest.scala
1 package gr.grnet.aquarium.user
2
3 import org.junit.Test
4
5 /**
6  *
7  * @author Georgios Gousios <gousiosg@gmail.com>
8  */
9
10 class UserActorTest {
11
12   @Test
13   def testUserStateSerialization = {
14     val now = System.currentTimeMillis()
15     val state = UserState(
16       "1",
17       0,
18       0L,
19       false,
20       null,
21       0L,
22       ActiveSuspendedSnapshot(true, now),
23       CreditSnapshot(0, now),
24       AgreementSnapshot(Agreement("default", now, now) :: Nil, now),
25       RolesSnapshot(Nil, now),
26       OwnedResourcesSnapshot(ResourceInstanceSnapshot("foo", "1", 0.1F, 1) :: Nil, now)
27     )
28
29     //val json = state.toJson
30     //println(json)
31   }
32 }