use of limelight.events.EventAction in project limelight by slagyr.
the class EventActionMulticasterTest method addingToNullEvent.
@Test
public void addingToNullEvent() throws Exception {
EventAction action = EventActionMulticaster.add(action1, null);
assertSame(action1, action);
}
use of limelight.events.EventAction in project limelight by slagyr.
the class EventActionMulticasterTest method removingSecondOfTwo.
@Test
public void removingSecondOfTwo() throws Exception {
EventAction action = EventActionMulticaster.add(action1, action2);
EventAction result = EventActionMulticaster.remove(action, action2);
assertSame(result, action1);
}
use of limelight.events.EventAction in project limelight by slagyr.
the class EventActionMulticasterTest method addingTwoActions.
@Test
public void addingTwoActions() throws Exception {
EventAction action = EventActionMulticaster.add(action1, action2);
assertEquals(EventActionMulticaster.class, action.getClass());
EventActionMulticaster multicaster = (EventActionMulticaster) action;
assertEquals(action1, multicaster.getFirst());
assertEquals(action2, multicaster.getSecond());
}
use of limelight.events.EventAction in project limelight by slagyr.
the class EventActionMulticasterTest method removingNull.
@Test
public void removingNull() throws Exception {
EventAction action = EventActionMulticaster.remove(action1, null);
assertSame(action1, action);
}
use of limelight.events.EventAction in project limelight by slagyr.
the class EventActionMulticasterTest method actionsAreInvokedInOrder.
@Test
public void actionsAreInvokedInOrder() throws Exception {
EventAction action = EventActionMulticaster.add(action1, action2);
action.invoke(null);
assertSame(action1, invokations.get(0));
assertSame(action2, invokations.get(1));
}
Aggregations