@Test public void copyFromLocalToRemoteWithIOException() throws Exception { PowerMockito.when(channelExecMock.getOutputStream()).thenThrow(IOException.class); exception.expect(RuntimeException.class); scpCopier.copyFromLocalToRemote(); verifyNew(JSch.class).withNoArguments(); verify(sessionMock).connect(); }
public boolean copyFromLocalToRemote(){ return copyFromLocalToRemote(remoteSecureCopyInputs.getSrcPath(), remoteSecureCopyInputs.getDestPath()); }
SCPCopier { public boolean copyFromLocalToRemote(){ return copyFromLocalToRemote(remoteSecureCopyInputs.getSrcPath(), remoteSecureCopyInputs.getDestPath()); } }
SCPCopier { public boolean copyFromLocalToRemote(){ return copyFromLocalToRemote(remoteSecureCopyInputs.getSrcPath(), remoteSecureCopyInputs.getDestPath()); } SCPCopier(RemoteSecureCopyInputs remoteSecureCopyInputs); }
SCPCopier { public boolean copyFromLocalToRemote(){ return copyFromLocalToRemote(remoteSecureCopyInputs.getSrcPath(), remoteSecureCopyInputs.getDestPath()); } SCPCopier(RemoteSecureCopyInputs remoteSecureCopyInputs); boolean copyFromRemoteToRemote(); boolean copyFromLocalToRemote(); boolean copyFromRemoteToLocal(); }
SCPCopier { public boolean copyFromLocalToRemote(){ return copyFromLocalToRemote(remoteSecureCopyInputs.getSrcPath(), remoteSecureCopyInputs.getDestPath()); } SCPCopier(RemoteSecureCopyInputs remoteSecureCopyInputs); boolean copyFromRemoteToRemote(); boolean copyFromLocalToRemote(); boolean copyFromRemoteToLocal();  }