Skip to content

Commit f63ca53

Browse files
committed
Remove comment out required codes
1 parent 865efaa commit f63ca53

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/test/java/org/embulk/output/sftp/TestSftpFileOutputPlugin.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -110,14 +110,14 @@ public void createResources()
110110
sshServer.setSubsystemFactories(Collections.<NamedFactory<Command>>singletonList(new SftpSubsystemFactory()));
111111
sshServer.setCommandFactory(new ScpCommandFactory());
112112
sshServer.setKeyPairProvider(new SimpleGeneratorHostKeyProvider());
113-
// sshServer.setPasswordAuthenticator(new PasswordAuthenticator()
114-
// {
115-
// @Override
116-
// public boolean authenticate(final String username, final String password, final ServerSession session)
117-
// {
118-
// return USERNAME.contentEquals(username) && PASSWORD.contentEquals(password);
119-
// }
120-
// });
113+
sshServer.setPasswordAuthenticator(new PasswordAuthenticator()
114+
{
115+
@Override
116+
public boolean authenticate(final String username, final String password, final ServerSession session)
117+
{
118+
return USERNAME.contentEquals(username) && PASSWORD.contentEquals(password);
119+
}
120+
});
121121
sshServer.setPublickeyAuthenticator(new PublickeyAuthenticator()
122122
{
123123
@Override

0 commit comments

Comments
 (0)