Permalink
Browse files

renamed shutdown tests to spec

  • Loading branch information...
1 parent dd59d32 commit fcc6fc7f23484910d38d55f03bc7169e29fd1497 Jonas Bon��r committed Jan 5, 2010
Showing with 38 additions and 0 deletions.
  1. +38 −0 akka-core/src/test/scala/ShutdownSpec.scala
View
38 akka-core/src/test/scala/ShutdownSpec.scala
@@ -0,0 +1,38 @@
+package se.scalablesolutions.akka.remote
+
+import se.scalablesolutions.akka.actor.Actor
+
+object ActorShutdownSpec {
+ def main(args: Array[String]) {
+
+ class MyActor extends Actor {
+ def receive = {
+ case "test" => println("received test")
+ case m@_ => println("received unknown message " + m)
+ }
+ }
+
+ val myActor = new MyActor
+ myActor.start
+ myActor.send("test")
+ myActor.stop
+ }
+}
+
+
+// case 2
+
+object RemoteServerAndClusterShutdownSpec {
+ def main(args: Array[String]) {
+ val s1 = new RemoteServer
+ val s2 = new RemoteServer
+ val s3 = new RemoteServer
+ s1.start("localhost", 9999)
+ s2.start("localhost", 9998)
+ s3.start("localhost", 9997)
+ Thread.sleep(5000)
+ s1.shutdown
+ s2.shutdown
+ s3.shutdown
+ }
+}

0 comments on commit fcc6fc7

Please sign in to comment.