}
@Test
public void testRmi_deleteEvent() { // 测试异步调用+多节点
CommunicationRegistry.regist(AppEventType.update, service);
AppDeleteEvent event = new AppDeleteEvent();
event.setName("rmiEvent");
client.call(new String[] { "127.0.0.1:2088", "127.0.0.1:2089" }, event, new Callback<List<Boolean>>() {
public void call(List<Boolean> event) {
want.number(event.size()).isEqualTo(2);
want.bool(event.get(0)).is(true);
want.bool(event.get(1)).is(true);
}
});// 异步调用
}