@Test public void createsWithProvidedEvents() { BeginDocumentEvent event = new BeginDocumentEvent(); List<DocumentBuilderEvent> allEvents = Lists.<DocumentBuilderEvent> newArrayList(event); DocumentBuilderEvents events = new DocumentBuilderEvents(allEvents); assertEquals(allEvents, events.getEvents()); }
public List<DocumentBuilderEvent> getEvents() { return events; }
DocumentBuilderEvents { public List<DocumentBuilderEvent> getEvents() { return events; } }
DocumentBuilderEvents { public List<DocumentBuilderEvent> getEvents() { return events; } DocumentBuilderEvents(List<DocumentBuilderEvent> events); }
DocumentBuilderEvents { public List<DocumentBuilderEvent> getEvents() { return events; } DocumentBuilderEvents(List<DocumentBuilderEvent> events); List<DocumentBuilderEvent> getEvents(); void applyTo(DocumentBuilder builder); @Override String toString(); }
DocumentBuilderEvents { public List<DocumentBuilderEvent> getEvents() { return events; } DocumentBuilderEvents(List<DocumentBuilderEvent> events); List<DocumentBuilderEvent> getEvents(); void applyTo(DocumentBuilder builder); @Override String toString();  }