Add receiveN to JavaTestKit. Fixes #3029

This commit is contained in:
Rich Dougherty 2013-02-12 21:43:06 +13:00
parent 44808c17ed
commit b6c1527cbd
4 changed files with 56 additions and 4 deletions

View file

@ -206,6 +206,11 @@ public class TestKitDocTest {
final Number j = expectMsgAnyClassOf(Integer.class, Long.class);
expectNoMsg();
//#test-expect
getRef().tell("receveN-1", null);
getRef().tell("receveN-2", null);
//#test-expect
final Object[] two = receiveN(2);
//#test-expect
assertEquals("hello", hello);
assertEquals("hello", any);
assertEquals(42, i);