use of com.google.copybara.TransformResult in project copybara by google.
the class HgDestinationTest method testEmptyChange.
@Test
public void testEmptyChange() throws Exception {
remoteRepo.archive(workdir.toString());
DummyRevision originRef = new DummyRevision("origin_ref");
TransformResult result = TransformResults.of(workdir, originRef);
RepoException expected = assertThrows(RepoException.class, () -> writer.write(result, destinationFiles, console));
assertThat(expected.getMessage()).contains("Error executing hg");
}
Aggregations