Merge pull request #417 from akka/issue-2019

closes #2019: Use parentheses for arity-0 methods which are not referent...
This commit is contained in:
viktorklang 2012-04-27 06:46:44 -07:00
commit 55dc5106a4
40 changed files with 110 additions and 110 deletions

View file

@ -112,7 +112,7 @@ class FaultHandlingDocSpec extends AkkaSpec with ImplicitSender {
watch(child) // have testActor watch child
child ! new IllegalArgumentException // break it
expectMsg(Terminated(child))
child.isTerminated must be(true)
child.isTerminated() must be(true)
//#stop
}
EventFilter[Exception]("CRASH", occurrences = 4) intercept {
@ -147,4 +147,4 @@ class FaultHandlingDocSpec extends AkkaSpec with ImplicitSender {
}
}
}
//#testkit
//#testkit

View file

@ -216,7 +216,7 @@ class DispatcherDocSpec extends AkkaSpec(DispatcherDocSpec.config) {
*/
//#prio-dispatcher
awaitCond(a.isTerminated, 5 seconds)
awaitCond(a.isTerminated(), 5 seconds)
}
"defining balancing dispatcher" in {

View file

@ -209,7 +209,7 @@ class TestkitDocSpec extends AkkaSpec with DefaultTimeout with ImplicitSender {
val future = probe.ref ? "hello"
probe.expectMsg(0 millis, "hello") // TestActor runs on CallingThreadDispatcher
probe.sender ! "world"
assert(future.isCompleted && future.value == Some(Right("world")))
assert(future.isCompleted() && future.value == Some(Right("world")))
//#test-probe-reply
}