Fix failing tests after merge
authorGeorgios Gousios <gousiosg@gmail.com>
Mon, 30 Jan 2012 12:21:00 +0000 (14:21 +0200)
committerGeorgios Gousios <gousiosg@gmail.com>
Mon, 30 Jan 2012 12:21:00 +0000 (14:21 +0200)
src/test/resources/akka.conf
src/test/scala/gr/grnet/aquarium/logic/test/AccountingTest.scala
src/test/scala/gr/grnet/aquarium/user/UserActorTest.scala

index 99525f6..0505e36 100644 (file)
@@ -6,7 +6,7 @@
 # Modify as needed.
 
 akka {
-  version = "1.3-RC5"   # Akka version, checked against the runtime version of Akka.
+  version = "1.3"   # Akka version, checked against the runtime version of Akka.
 
   enabled-modules = ["remote", "http", "amqp"]       # Comma separated list of the enabled modules. Options: ["remote", "camel", "http"]
 
index ba927ae..444e47c 100644 (file)
@@ -90,7 +90,7 @@ class AccountingTest extends DSLTestBase with Accounting with TestMethods {
 
     //Complex resource event without details, should fail
     evt = ResourceEvent("123", 1325762772000L, 1325762774000L, "12", "1", "vmtime", "1", "1", 1, Map())
-    assertFailed[AccountingException, List[WalletEntry]](chargeEvent(evt, agr, 1, new Date(1325755902000L), List()))
+    assertFailed[Exception, List[WalletEntry]](chargeEvent(evt, agr, 1, new Date(1325755902000L), List()))
 
     //Complex, onoff resource
     evt = ResourceEvent("123", 1325762772000L, 1325762774000L, "12", "1", "vmtime", "1", "1", 1, Map("vmid" -> "3"))
@@ -102,7 +102,7 @@ class AccountingTest extends DSLTestBase with Accounting with TestMethods {
 
     //Complex, onoff resource, with wrong states, should fail
     evt = ResourceEvent("123", 1325762772000L, 1325762774000L, "12", "1", "vmtime", "1", "1", 1, Map("vmid" -> "3"))
-    assertFailed[AccountingException, List[WalletEntry]](chargeEvent(evt, agr, 1, new Date(1325755902000L), List()))
+    assertFailed[Exception, List[WalletEntry]](chargeEvent(evt, agr, 1, new Date(1325755902000L), List()))
 
     //Simple, discrete resource
     evt = ResourceEvent("123", 1325762772000L, 1325762774000L, "12", "1", "bookpages", "1", "1", 120, Map())
index 9ae194c..2a9e716 100644 (file)
@@ -29,7 +29,7 @@ class UserActorTest {
       OwnedResourcesSnapshot(ResourceInstanceSnapshot("foo", "1", 0.1F, 1) :: Nil, now)
     )
 
-    val json = state.toJson
-    println(json)
+    //val json = state.toJson
+    //println(json)
   }
 }
\ No newline at end of file