@Test public void copyFromRemoteToLocalWithIOException() throws Exception { PowerMockito.when(channelExecMock.getOutputStream()).thenThrow(IOException.class); exception.expect(RuntimeException.class); scpCopier.copyFromRemoteToLocal(); verifyNew(JSch.class).withNoArguments(); verify(sessionMock).connect(); }
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();  }