import java.util.ArrayList;
-import javax.print.attribute.standard.Destination;
-
import org.junit.Before;
import org.junit.Test;
-import org.wamblee.xmlrouter.common.Id;
import org.wamblee.xmlrouter.config.Transformation;
public class CompositeEventListenerTest {
- private static final String DESTINATION_NAME = "dest";
- private static final Id<Destination> DESTINATION_ID = new Id<Destination>(
- 12);
+ 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