Add more tests for MasterConf loading.
authorChristos KK Loverdos <loverdos@gmail.com>
Fri, 9 Dec 2011 11:51:37 +0000 (13:51 +0200)
committerChristos KK Loverdos <loverdos@gmail.com>
Fri, 9 Dec 2011 11:51:37 +0000 (13:51 +0200)
logic/src/test/resources/aquarium.properties
logic/src/test/scala/gr/grnet/aquarium/MasterConfTest.scala

index 26a7a85..39eb89e 100644 (file)
@@ -1,2 +1,5 @@
-version=0.0.2-SNAPSHOT
+version = 0.0.2-SNAPSHOT
+
+# Actor subsystem
+actor.provider.class=gr.grnet.aquarium.actor.SimpleLocalActorProvider
 
index 6f62b91..07ea132 100644 (file)
@@ -35,6 +35,7 @@
 
 package gr.grnet.aquarium
 
+import actor.DispatcherRole
 import org.junit.Test
 import org.junit.Assert._
 import org.junit.Assume.assumeTrue
@@ -49,4 +50,22 @@ class MasterConfTest {
     val rc = MasterConf.MasterConfResource
     assertTrue(MasterConf.MasterConfName, rc.exists)
   }
+
+  @Test
+  def testLoad: Unit = {
+    val mc = MasterConf.MasterConf
+  }
+
+  @Test
+  def testGetActorProvider: Unit = {
+    val mc = MasterConf.MasterConf
+    val ap = mc.actorProvider
+  }
+
+  @Test
+  def testGetDispatcherActor: Unit = {
+    val mc = MasterConf.MasterConf
+    val ap = mc.actorProvider
+    val dispatcher = ap.actorForRole(DispatcherRole)
+  }
 }
\ No newline at end of file