@Test public void shouldReturnUndoContentsOfFile() throws Exception { File file = createTemporaryFileWithContent( "Hello\n" + "There!\n" + "-- "This is after the undo marker!\n"); ChangeScript changeScript = new ChangeScript(5, file, "UTF-8"); assertThat(changeScript.getUndoContent(), is("This is after the undo marker!\n")); }
public String getUndoContent() { return getFileContents(true); }
ChangeScript implements Comparable { public String getUndoContent() { return getFileContents(true); } }
ChangeScript implements Comparable { public String getUndoContent() { return getFileContents(true); } ChangeScript(long id);  ChangeScript(long id, String description);  ChangeScript(long id, File file, String encoding); }
ChangeScript implements Comparable { public String getUndoContent() { return getFileContents(true); } ChangeScript(long id);  ChangeScript(long id, String description);  ChangeScript(long id, File file, String encoding); File getFile(); long getId(); String getDescription(); int compareTo(Object o); @Override String toString(); String getContent(); String getUndoContent(); }
ChangeScript implements Comparable { public String getUndoContent() { return getFileContents(true); } ChangeScript(long id);  ChangeScript(long id, String description);  ChangeScript(long id, File file, String encoding); File getFile(); long getId(); String getDescription(); int compareTo(Object o); @Override String toString(); String getContent(); String getUndoContent();  }