outConsumer.consumeLine("\t<url>${sonar.snapshotRepository.url}</url>");
return 0;
}
});
thrown.expect(IllegalStateException.class);
<BUG>thrown.expectMessage("Unable to blame file src/foo.xoo. No blame info at line 1. Is file commited?");
new GitBlameCommand(commandExecutor).blame(fs, Arrays.<InputFile>asList(inputFile), result);
}</BUG>
@Test
public void testExecutionError() throws IOException {

outConsumer.consumeLine("\t<url>${sonar.snapshotRepository.url}</url>");
return 0;
}
});
thrown.expect(IllegalStateException.class);
thrown.expectMessage("Unable to blame file src/foo.xoo. No blame info at line 1. Is file commited?");
when(input.filesToBlame()).thenReturn(Arrays.<InputFile>asList(inputFile));
new GitBlameCommand(commandExecutor).blame(input, result);
}
@Test
public void testExecutionError() throws IOException {
