use of org.zmlx.hg4idea.provider.annotate.HgAnnotationLine in project intellij-community by JetBrains.
the class HgAnnotateCommandTest method testParse.
@Test(dataProvider = "annotate_output")
public void testParse(String fileName, String annotationNativeOutput) throws NoSuchMethodException, InvocationTargetException, IllegalAccessException {
HgAnnotateCommand command = new HgAnnotateCommand(myProject);
Method parseMethod = HgAnnotateCommand.class.getDeclaredMethod("parse", List.class);
parseMethod.setAccessible(true);
List<String> annotations = Arrays.asList(annotationNativeOutput.split("(\n|\r|\r\n)"));
List<HgAnnotationLine> result = (List<HgAnnotationLine>) parseMethod.invoke(command, annotations);
assertEquals(result, myAnnotations);
}
Aggregations