Skip to content

Commit

Permalink
#24 no-arg ctor for SSHD
Browse files Browse the repository at this point in the history
  • Loading branch information
Yegor Bugayenko committed Jun 22, 2015
1 parent f7ef9b2 commit 34f440f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions src/main/java/com/jcabi/ssh/SSHD.java
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,15 @@ public final class SSHD implements Closeable {
*/
private final transient int prt;

/**
* Ctor.
* @throws IOException If fails
* @since 1.5
*/
public SSHD() throws IOException {
this(new File(System.getProperty("java.io.tmpdir")));
}

/**
* Ctor.
* @param path Directory to work in
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/com/jcabi/ssh/SSHDTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public void notWindows() {
*/
@Test
public void executeCommandOnServer() throws Exception {
final SSHD sshd = new SSHD(this.temp.newFolder());
final SSHD sshd = new SSHD();
try {
MatcherAssert.assertThat(
new Shell.Plain(
Expand Down

0 comments on commit 34f440f

Please sign in to comment.