Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -124,23 +124,25 @@ public BapSshTransferDescriptor getDescriptor() {
}

protected HashCodeBuilder addToHashCode(final HashCodeBuilder builder) {
return super.addToHashCode(builder).append(execCommand).append(execTimeout).append(usePty).append(useAgentForwarding);
return super.addToHashCode(builder).append(execCommand).append(execTimeout).append(usePty).append(useAgentForwarding).append(useSftpForExec);
}

protected EqualsBuilder addToEquals(final EqualsBuilder builder, final BapSshTransfer that) {
return super.addToEquals(builder, that)
.append(execCommand, that.execCommand)
.append(execTimeout, that.execTimeout)
.append(usePty, that.usePty)
.append(useAgentForwarding, that.useAgentForwarding);
.append(useAgentForwarding, that.useAgentForwarding)
.append(useSftpForExec, that.useSftpForExec);
}

protected ToStringBuilder addToToString(final ToStringBuilder builder) {
return super.addToToString(builder)
.append("execCommand", execCommand)
.append("execTimeout", execTimeout)
.append("pseudoTty", usePty)
.append("agentForwarding", useAgentForwarding);
.append("agentForwarding", useAgentForwarding)
.append("useSftpForExec", useSftpForExec);
}

public boolean equals(final Object that) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import static org.junit.Assert.assertEquals;


public class sftpForExecTest {
public class SftpForExecTest {

private final IMocksControl mockControl = EasyMock.createStrictControl();
private final Session mockSession = mockControl.createMock(Session.class);
Expand Down