void () { myRepository.refresh(false, true); final VirtualFile file = myRepository.findFileByRelativePath(firstCreatedFile); assert file != null; List<String> users = Arrays.asList(defaultAuthor, author1, author2); final HgFile hgFile = new HgFile(myRepository, VfsUtilCore.virtualToIoFile(file)); final String date = DateFormatUtil.formatPrettyDate(Clock.getTime()); List<HgAnnotationLine> annotationLines = new HgAnnotateCommand(myProject).execute(hgFile, null); for (int i = 0; i < annotationLines.size(); ++i) { HgAnnotationLine line = annotationLines.get(i); assertEquals(users.get(i), line.get(HgAnnotation.FIELD.USER)); assertEquals(date, line.get(HgAnnotation.FIELD.DATE)); } }