public class CompositeEventListenerTest {
- private static final String DESTINATION_NAME = "dest";
- private static final long DESTINATION_ID = 12L;
+ private static final String DESTINATION_ID = "destid";
private CompositeEventListener composite;
private EventInfo source;
public void testNoListeners() {
// verify no exceptions occur.
composite.delivered(mock(EventInfo.class), getTransformations(),
- DESTINATION_ID, DESTINATION_NAME, true);
+ DESTINATION_ID, true);
composite.notDelivered(mock(EventInfo.class));
}
}
private void invokeDelivered() {
- composite.delivered(source, getTransformations(), DESTINATION_ID,
- DESTINATION_NAME, true);
+ composite.delivered(source, getTransformations(), DESTINATION_ID, true);
}
private void invokeNotDelivered() {
private void checkInvokeDelivered(EventListener listener) {
verify(listener).delivered(same(source), eq(getTransformations()),
- eq(DESTINATION_ID), eq(DESTINATION_NAME), eq(true));
+ eq(DESTINATION_ID), eq(true));
}
@Test