void () { long leftTime = new Date(2001 - 1900, 1, 3, 12, 0).getTime(); long rightTime = new Date(2002 - 1900, 2, 4, 14, 0).getTime(); VirtualFile f = createChildData(myRoot, "old.txt"); setBinaryContent(f, "old".getBytes(StandardCharsets.UTF_8), -1, leftTime, this); rename(f, "new.txt"); setBinaryContent(f, "new".getBytes(StandardCharsets.UTF_8), -1, rightTime, this); byte[] content = new byte[0]; setBinaryContent(f, content); FileHistoryDialogModel m = createFileModelAndSelectRevisions(f, 0, 2); assertEquals(FileUtil.toSystemDependentName(f.getPath()), m.getDifferenceModel().getTitle()); assertEquals(DateFormatUtil.formatDateTime(leftTime) + " - old.txt", m.getDifferenceModel().getLeftTitle(new NullRevisionsProgress())); assertEquals(DateFormatUtil.formatDateTime(rightTime) + " - new.txt", m.getDifferenceModel().getRightTitle(new NullRevisionsProgress())); }