@Test public void testIsWritten() throws Exception{ writer.write(TRIGGER_T1); replay(writer); assertFalse(eventTriggerWriter.isWritten(triggerT1)); eventTriggerWriter.writeTrigger(triggerT1); assertTrue(eventTriggerWriter.isWritten(triggerT1)); }
public boolean isWritten(EventTrigger trigger) { return writtenIds.contains(trigger.getId()); }
EventTriggerWriter { public boolean isWritten(EventTrigger trigger) { return writtenIds.contains(trigger.getId()); } }
EventTriggerWriter { public boolean isWritten(EventTrigger trigger) { return writtenIds.contains(trigger.getId()); } EventTriggerWriter(Writer writer, String documentText); }
EventTriggerWriter { public boolean isWritten(EventTrigger trigger) { return writtenIds.contains(trigger.getId()); } EventTriggerWriter(Writer writer, String documentText); Writer getFileWriter(); void setFileWriter(Writer writer); void writeTrigger(EventTrigger trigger); void close(); boolean isWritten(EventTrigger trigger); }
EventTriggerWriter { public boolean isWritten(EventTrigger trigger) { return writtenIds.contains(trigger.getId()); } EventTriggerWriter(Writer writer, String documentText); Writer getFileWriter(); void setFileWriter(Writer writer); void writeTrigger(EventTrigger trigger); void close(); boolean isWritten(EventTrigger trigger);  }