Commit graph

121 commits

Author SHA1 Message Date
Roland
892c6e056c improve scaladoc of TestKit.expectMsgAllOf 2011-07-16 21:30:08 -04:00
Viktor Klang
9d71be7778 Updating copyright section to Typesafe Inc. etc 2011-07-14 16:03:08 +02:00
Roland
e7f3945776 add TestKit.expectMsgType
- plus docs
- and replace softTimeout hack with better solution
2011-06-26 17:40:30 +02:00
Jonas Bonér
a4980446a0 Merge with upstream master 2011-06-22 10:01:31 +02:00
Jonas Bonér
4d31751793 Fixed clustered management of actor serializer.
Various renames and refactorings.
Changed all internal usages of 'actorOf' to 'localActorOf'.

Signed-off-by: Jonas Bonér <jonasremove@jonasboner.com>
2011-06-22 09:59:00 +02:00
Roland
3d40a0f529 add TestFSMRefSpec and make TestFSMRef better accessible
- add address argument to TestFSMRef factory
- set address of TestKit.testActor to "testActor#" with monotonically
  increasing number #
2011-06-19 21:42:08 +02:00
Roland
39e41c6596 change all actor logging to use Actor, not ActorRef as source instance 2011-06-19 21:07:49 +02:00
Roland
2852e1a763 make available TestKitLight without implicit ActorRef 2011-06-19 17:41:19 +02:00
Roland
1970b96ae5 make TestKit methods return most specific type
document all testkit methods
2011-06-19 17:35:11 +02:00
Roland
f770cfca59 improve usability of TestKit.expectMsgPF
background: PartialFunction literals don't work if they encounter
overload resolution, because scalac then complains about not fully
defined argument types.
2011-06-19 16:50:35 +02:00
Roland
5933780bca TestKit timeouts and awaitCond (from release-1.2)
- move akka.testing from akka-actor-tests to akka-testkit/akka.testkit
- move timeFactor from Testing to Duration and add .dilated method
- add Duration.{min, max}
- add TestKit.awaitCond
- use Duration.dilated on all max Durations in TestKit
- fix up loose ends

Conflicts:

	akka-actor-tests/src/main/scala/akka/testing/Testing.scala
	akka-actor-tests/src/test/scala/akka/actor/actor/ActorRefSpec.scala
	akka-actor-tests/src/test/scala/akka/actor/supervisor/SupervisorSpec.scala
	akka-actor-tests/src/test/scala/akka/routing/RoutingSpec.scala
	akka-actor/src/main/scala/akka/util/Duration.scala
	akka-remote/src/test/scala/remote/RemoteTypedActorSpec.scala
	akka-testkit/src/main/scala/akka/testkit/TestBarrier.scala
	akka-testkit/src/main/scala/akka/testkit/TestKit.scala
	akka-typed-actor/src/test/scala/actor/typed-actor/TypedActorLifecycleSpec.scala
2011-06-17 22:19:17 +02:00
Roland
7712c20620 unify sender/senderFuture into channel (++)
(squashed merge from the various bits and pieces already part of
release-1.2, everything related to Channel & Future)
2011-06-13 22:36:46 +02:00
Roland
a48f6fdf90 add copyright headers 2011-05-19 21:34:21 +02:00
Jonas Bonér
a7311c83e6 Added Scalariform sbt plugin which formats code on each compile. Also checking in reformatted code 2011-05-18 17:25:30 +02:00
Roland
cb332b2756 make testActor.dispatcher=CallingThreadDispatcher
- it's needed for unit testing, and it does not hurt since testActor
  does not send anything
2011-04-21 21:31:30 +02:00
Roland Kuhn
85daa9f8e2 Merge branch 'master' into wip-testkit 2011-04-15 20:35:55 +02:00
Patrik Nordwall
3c8e375f30 Added parens to stop 2011-04-12 10:53:56 +02:00
Patrik Nordwall
087191f19f Added parens to start 2011-04-12 09:56:17 +02:00
Roland Kuhn
b169f35643 fix error handling in TestKit.within
restore outer deadline in case the code block does throw an exception.
This is done in order to reduce the number of follow-on test failures.
2011-03-27 18:15:40 +02:00
Roland Kuhn
3d28e6ad0f create akka-testkit subproject
- modify AkkaProject.scala
- move CallingThreadDispatcher & Spec and TestKit into akka-testkit
- update FSMTimingSpec accordingly
2011-03-05 14:36:08 +01:00
Roland Kuhn
50b2c14235 create akka-testkit subproject
- modify AkkaProject.scala
- move CallingThreadDispatcher & Spec and TestKit into akka-testkit
- update FSMTimingSpec accordingly
2011-03-05 14:36:08 +01:00
Renamed from akka-actor/src/main/scala/akka/util/TestKit.scala (Browse further)