ObjectTagResultEvent extends PlainEvent implements InputEvent { @Override public Object getInputResult() { return result; } ObjectTagResultEvent(final Object methodResult); @Override Object getInputResult(); @Override String getEventType(); static final String EVENT_TYPE; }
@Test public void testGetInputResult() { final ObjectTagResultEvent event1 = new ObjectTagResultEvent(TEST_VALUE); Assert.assertEquals(TEST_VALUE, event1.getInputResult()); final ObjectTagResultEvent event2 = new ObjectTagResultEvent(null); Assert.assertNull(event2.getInputResult()); }