Skip to content

Instantly share code, notes, and snippets.

@Atternatt
Last active January 27, 2020 12:55
Show Gist options
  • Save Atternatt/c513bbbcb9e2746590df0b61b5ed7848 to your computer and use it in GitHub Desktop.
Save Atternatt/c513bbbcb9e2746590df0b61b5ed7848 to your computer and use it in GitHub Desktop.
@Test
@DisplayName("When Exporting only one file then rsync#sync should be called only once")
fun exportServerCallRsyncSync() {
collectorExporter.export(mockedFile, serverAddress, DirectExecutor, "").get()
verify(sync, times(1)).sync(absolutePathMock, serverAddress, "")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment