/** * Receive one message from the internal queue of the TestActor. If the given duration is zero, * the queue is polled (non-blocking). * * <p>This method does NOT automatically scale its Duration parameter! */ public Object receiveOne(Duration max) { return p.receiveOne(max); }
/** * Receive one message from the internal queue of the TestActor. If the given duration is zero, * the queue is polled (non-blocking). * * <p>This method does NOT automatically scale its Duration parameter! */ public Object receiveOne(Duration max) { return p.receiveOne(max); }
/** * Receive one message from the internal queue of the TestActor. If the given * duration is zero, the queue is polled (non-blocking). * <p> * * This method does NOT automatically scale its Duration parameter! */ public Object receiveOne(Duration max) { return p.receiveOne(max); }
public ExpectMsg(Duration max, String hint) { final Object received = p.receiveOne(max); try { result = match(received); } catch (JavaPartialFunction.NoMatchException ex) { throw new AssertionError("while expecting '" + hint + "' received unexpected: " + received); } }
public ExpectMsg(Duration max, String hint) { final Object received = p.receiveOne(max); try { result = match(received); } catch (JavaPartialFunction.NoMatchException ex) { throw new AssertionError("while expecting '" + hint + "' received unexpected: " + received); } }
public ExpectMsg(Duration max, String hint) { final Object received = p.receiveOne(max); try { result = match(received); } catch (JavaPartialFunction.NoMatchException ex) { throw new AssertionError("while expecting '" + hint + "' received unexpected: " + received); } }
/** * Receive one message from the internal queue of the TestActor. If the given * duration is zero, the queue is polled (non-blocking). * <p> * * This method does NOT automatically scale its Duration parameter! */ public Object receiveOne(Duration max) { return p.receiveOne(max); }
/** * Receive one message from the internal queue of the TestActor. If the given * duration is zero, the queue is polled (non-blocking). * <p> * * This method does NOT automatically scale its Duration parameter! */ public Object receiveOne(Duration max) { return p.receiveOne(max); }
/** * Receive one message from the internal queue of the TestActor. If the given * duration is zero, the queue is polled (non-blocking). * <p> * * This method does NOT automatically scale its Duration parameter! */ public Object receiveOne(Duration max) { return p.receiveOne(max); }
/** * Receive one message from the internal queue of the TestActor. If the given * duration is zero, the queue is polled (non-blocking). * <p> * * This method does NOT automatically scale its Duration parameter! */ public Object receiveOne(Duration max) { return p.receiveOne(max); }
/** * Receive one message from the internal queue of the TestActor. If the given * duration is zero, the queue is polled (non-blocking). * <p> * * This method does NOT automatically scale its Duration parameter! */ public Object receiveOne(Duration max) { return p.receiveOne(max); }
/** * Receive one message from the internal queue of the TestActor. If the given * duration is zero, the queue is polled (non-blocking). * <p> * * This method does NOT automatically scale its Duration parameter! */ public Object receiveOne(Duration max) { return p.receiveOne(max); }
public ExpectMsg(Duration max, String hint) { final Object received = p.receiveOne(max); try { result = match(received); } catch (JavaPartialFunction.NoMatchException ex) { throw new AssertionError("while expecting '" + hint + "' received unexpected: " + received); } }
public ExpectMsg(Duration max, String hint) { final Object received = p.receiveOne(max); try { result = match(received); } catch (JavaPartialFunction.NoMatchException ex) { throw new AssertionError("while expecting '" + hint + "' received unexpected: " + received); } }
public ExpectMsg(Duration max, String hint) { final Object received = p.receiveOne(max); try { result = match(received); } catch (JavaPartialFunction.NoMatchException ex) { throw new AssertionError("while expecting '" + hint + "' received unexpected: " + received); } }
public ExpectMsg(Duration max, String hint) { final Object received = p.receiveOne(max); try { result = match(received); } catch (JavaPartialFunction.NoMatchException ex) { throw new AssertionError("while expecting '" + hint + "' received unexpected: " + received); } }
public ExpectMsg(Duration max, String hint) { final Object received = p.receiveOne(max); try { result = match(received); } catch (JavaPartialFunction.NoMatchException ex) { throw new AssertionError("while expecting '" + hint + "' received unexpected: " + received); } }
public ExpectMsg(Duration max, String hint) { final Object received = p.receiveOne(max); try { result = match(received); } catch (JavaPartialFunction.NoMatchException ex) { throw new AssertionError("while expecting '" + hint + "' received unexpected: " + received); } }
private void assertTransmit(final Request<?, ?> expected, final long sequence) { assertTrue(mockActor.msgAvailable()); assertRequestEquals(expected, sequence, mockActor.receiveOne(FiniteDuration.apply(5, TimeUnit.SECONDS))); }