@Test public void copyFromRemoteToLocal() throws Exception { boolean isCopied = scpCopier.copyFromRemoteToLocal(); assertEquals(true, isCopied); verifyNew(JSch.class).withNoArguments(); verify(jSchMock).getSession(anyString(), anyString(), anyInt()); verify(sessionMock).connect(anyInt()); verify(sessionMock).openChannel(EXEC); verify(channelExecMock).setCommand(anyString()); verify(channelExecMock).connect(); verify(channelExecMock).disconnect(); verify(sessionMock).disconnect(); }
public boolean copyFromRemoteToLocal(){ return copyFromRemoteToLocal(remoteSecureCopyInputs.getSrcPath(), remoteSecureCopyInputs.getDestPath()); }
SCPCopier { public boolean copyFromRemoteToLocal(){ return copyFromRemoteToLocal(remoteSecureCopyInputs.getSrcPath(), remoteSecureCopyInputs.getDestPath()); } }
SCPCopier { public boolean copyFromRemoteToLocal(){ return copyFromRemoteToLocal(remoteSecureCopyInputs.getSrcPath(), remoteSecureCopyInputs.getDestPath()); } SCPCopier(RemoteSecureCopyInputs remoteSecureCopyInputs); }
SCPCopier { public boolean copyFromRemoteToLocal(){ return copyFromRemoteToLocal(remoteSecureCopyInputs.getSrcPath(), remoteSecureCopyInputs.getDestPath()); } SCPCopier(RemoteSecureCopyInputs remoteSecureCopyInputs); boolean copyFromRemoteToRemote(); boolean copyFromLocalToRemote(); boolean copyFromRemoteToLocal(); }
SCPCopier { public boolean copyFromRemoteToLocal(){ return copyFromRemoteToLocal(remoteSecureCopyInputs.getSrcPath(), remoteSecureCopyInputs.getDestPath()); } SCPCopier(RemoteSecureCopyInputs remoteSecureCopyInputs); boolean copyFromRemoteToRemote(); boolean copyFromLocalToRemote(); boolean copyFromRemoteToLocal();  }