Commit graph

13 commits

Author SHA1 Message Date
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)