@Test(expected = CoreException.class) public void testCreateEvent() throws Exception { for (int i = 0; i < ALL_EVENT_CLASSES.length; i++) { Event e = (Event) EventFactory.create(Class.forName(ALL_EVENT_CLASSES[i])); assertNotSame(ALL_EVENT_CLASSES[i], e.getNameSpace(), EventNameSpaceConstants.EVENT); } EventFactory.create(FailingEvent.class); }
public static Event createEvent(AdaptrisMessage msg, AdaptrisMarshaller marshaller) throws CoreException { return (Event) marshaller.unmarshal(msg.getContent()); }
EventFactory { public static Event createEvent(AdaptrisMessage msg, AdaptrisMarshaller marshaller) throws CoreException { return (Event) marshaller.unmarshal(msg.getContent()); } }
EventFactory { public static Event createEvent(AdaptrisMessage msg, AdaptrisMarshaller marshaller) throws CoreException { return (Event) marshaller.unmarshal(msg.getContent()); }  }
EventFactory { public static Event createEvent(AdaptrisMessage msg, AdaptrisMarshaller marshaller) throws CoreException { return (Event) marshaller.unmarshal(msg.getContent()); }  static Event create(String name); static T create(Class<T> name); static Event createEvent(AdaptrisMessage msg, AdaptrisMarshaller marshaller); static Event createEvent(AdaptrisMessage msg); }
EventFactory { public static Event createEvent(AdaptrisMessage msg, AdaptrisMarshaller marshaller) throws CoreException { return (Event) marshaller.unmarshal(msg.getContent()); }  static Event create(String name); static T create(Class<T> name); static Event createEvent(AdaptrisMessage msg, AdaptrisMarshaller marshaller); static Event createEvent(AdaptrisMessage msg);  }