@Test public void copyFromRemoteToLocalWithJSchException() throws Exception { PowerMockito.when(jSchMock.getSession(anyString(), anyString(), anyInt())).thenThrow(JSchException.class); exception.expect(RuntimeException.class); scpCopier.copyFromRemoteToLocal(); verifyNew(JSch.class).withNoArguments(); }
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();  }