@Test public void testIsWritten() throws Exception{ assertFalse(entityWriter.isWritten(entityT13)); writer.write(ENTITY_T13); replay(writer); entityWriter.writeEntity(entityT13); assertTrue(entityWriter.isWritten(entityT13)); }
public boolean isWritten(EntityMention entity) { return writtenIds.contains(entity.getId()); }
EntityWriter { public boolean isWritten(EntityMention entity) { return writtenIds.contains(entity.getId()); } }
EntityWriter { public boolean isWritten(EntityMention entity) { return writtenIds.contains(entity.getId()); } EntityWriter(Writer writer, String documentText); }
EntityWriter { public boolean isWritten(EntityMention entity) { return writtenIds.contains(entity.getId()); } EntityWriter(Writer writer, String documentText); Writer getFileWriter(); void setFileWriter(Writer writer); void writeEntity(EntityMention entity); void close(); boolean isWritten(EntityMention entity); }
EntityWriter { public boolean isWritten(EntityMention entity) { return writtenIds.contains(entity.getId()); } EntityWriter(Writer writer, String documentText); Writer getFileWriter(); void setFileWriter(Writer writer); void writeEntity(EntityMention entity); void close(); boolean isWritten(EntityMention entity);  }