/** * Same as <code>expectMsgEquals(remainingOrDefault(), obj)</code>, but correctly treating the * timeFactor. */ public <T> T expectMsgEquals(T msg) { return p.expectMsg(msg); }
/** * Receive one message from the test actor and assert that it equals the given object. Wait time * is bounded by the given duration, with an AssertionFailure being thrown in case of timeout. * * @return the received object */ public <T> T expectMsgEquals(FiniteDuration max, T msg) { return p.expectMsg(max, msg); }
/** * Receive one message from the test actor and assert that it equals the given * object. Wait time is bounded by the given duration, with an * AssertionFailure being thrown in case of timeout. * * @return the received object */ public <T> T expectMsgEquals(FiniteDuration max, T msg) { return p.expectMsg(max, msg); }
/** * Same as <code>expectMsgEquals(remainingOrDefault(), obj)</code>, but correctly treating the * timeFactor. */ public <T> T expectMsgEquals(T msg) { return p.expectMsg(msg); }
/** * Receive one message from the test actor and assert that it equals the given object. Wait time * is bounded by the given duration, with an AssertionFailure being thrown in case of timeout. * * @return the received object */ public <T> T expectMsgEquals(FiniteDuration max, T msg) { return p.expectMsg(max, msg); }
/** * Same as <code>expectMsgEquals(remaining(), obj)</code>, but correctly * treating the timeFactor. */ public <T> T expectMsgEquals(T msg) { return p.expectMsg(msg); }
/** * Same as <code>expectMsgEquals(remaining(), obj)</code>, but correctly * treating the timeFactor. */ public <T> T expectMsgEquals(T msg) { return p.expectMsg(msg); }
/** * Receive one message from the test actor and assert that it equals the given * object. Wait time is bounded by the given duration, with an * AssertionFailure being thrown in case of timeout. * * @return the received object */ public <T> T expectMsgEquals(FiniteDuration max, T msg) { return p.expectMsg(max, msg); }
/** * Receive one message from the test actor and assert that it equals the given * object. Wait time is bounded by the given duration, with an * AssertionFailure being thrown in case of timeout. * * @return the received object */ public <T> T expectMsgEquals(FiniteDuration max, T msg) { return p.expectMsg(max, msg); }
/** * Receive one message from the test actor and assert that it equals the given * object. Wait time is bounded by the given duration, with an * AssertionFailure being thrown in case of timeout. * * @return the received object */ public <T> T expectMsgEquals(FiniteDuration max, T msg) { return p.expectMsg(max, msg); }
/** * Receive one message from the test actor and assert that it equals the given * object. Wait time is bounded by the given duration, with an * AssertionFailure being thrown in case of timeout. * * @return the received object */ public <T> T expectMsgEquals(FiniteDuration max, T msg) { return p.expectMsg(max, msg); }
/** * Same as <code>expectMsgEquals(remaining(), obj)</code>, but correctly * treating the timeFactor. */ public <T> T expectMsgEquals(T msg) { return p.expectMsg(msg); }
/** * Same as <code>expectMsgEquals(remaining(), obj)</code>, but correctly * treating the timeFactor. */ public <T> T expectMsgEquals(T msg) { return p.expectMsg(msg); }
/** * Receive one message from the test actor and assert that it equals the given * object. Wait time is bounded by the given duration, with an * AssertionFailure being thrown in case of timeout. * * @return the received object */ public <T> T expectMsgEquals(FiniteDuration max, T msg) { return p.expectMsg(max, msg); }
/** * Same as <code>expectMsgEquals(remaining(), obj)</code>, but correctly * treating the timeFactor. */ public <T> T expectMsgEquals(T msg) { return p.expectMsg(msg); }
/** * Receive one message from the test actor and assert that it equals the given * object. Wait time is bounded by the given duration, with an * AssertionFailure being thrown in case of timeout. * * @return the received object */ public <T> T expectMsgEquals(FiniteDuration max, T msg) { return p.expectMsg(max, msg); }
/** * Same as <code>expectMsgEquals(remaining(), obj)</code>, but correctly * treating the timeFactor. */ public <T> T expectMsgEquals(T msg) { return p.expectMsg(msg); }
/** * Same as <code>expectMsgEquals(remaining(), obj)</code>, but correctly * treating the timeFactor. */ public <T> T expectMsgEquals(T msg) { return p.expectMsg(msg); }
@Test public void testExecuteInActor() { ctx.executeInActor(command); probe.expectMsg(command); }
@Test public void testExecuteInActorScheduled() { ctx.executeInActor(command, FiniteDuration.create(1, TimeUnit.SECONDS)); probe.expectMsg(command); }