You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by br...@apache.org on 2014/06/06 20:01:51 UTC
svn commit: r1600972 -
/subversion/trunk/subversion/bindings/javahl/tests/org/apache/subversion/javahl/SVNRemoteTests.java
Author: brane
Date: Fri Jun 6 18:01:51 2014
New Revision: 1600972
URL: http://svn.apache.org/r1600972
Log:
Tweak JavaHL tests to test the authentication callback
implementation a bit more.
* subversion/bindings/javahl/tests/org/apache/subversion/javahl/SVNRemoteTests.java:
Do not set the default password in the remote session anywhere.
Modified:
subversion/trunk/subversion/bindings/javahl/tests/org/apache/subversion/javahl/SVNRemoteTests.java
Modified: subversion/trunk/subversion/bindings/javahl/tests/org/apache/subversion/javahl/SVNRemoteTests.java
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/bindings/javahl/tests/org/apache/subversion/javahl/SVNRemoteTests.java?rev=1600972&r1=1600971&r2=1600972&view=diff
==============================================================================
--- subversion/trunk/subversion/bindings/javahl/tests/org/apache/subversion/javahl/SVNRemoteTests.java (original)
+++ subversion/trunk/subversion/bindings/javahl/tests/org/apache/subversion/javahl/SVNRemoteTests.java Fri Jun 6 18:01:51 2014
@@ -78,7 +78,7 @@ public class SVNRemoteTests extends SVNT
RemoteFactory factory = new RemoteFactory();
factory.setConfigDirectory(configDirectory);
factory.setUsername(USERNAME);
- factory.setPassword(PASSWORD);
+ // Do not set default password, exercise prompter instead.
factory.setPrompt(new DefaultPromptUserPassword());
ISVNRemote raSession = factory.openRemoteSession(url);
@@ -113,7 +113,8 @@ public class SVNRemoteTests extends SVNT
{
session = new RemoteFactory(
super.conf.getAbsolutePath(),
- USERNAME, PASSWORD,
+ USERNAME, null, // Do not set default password.
+
new DefaultPromptUserPassword(),
null, null, null)
.openRemoteSession(getTestRepoUrl());
@@ -141,7 +142,7 @@ public class SVNRemoteTests extends SVNT
0, 1 + getTestRepoUrl().lastIndexOf("/"));
new RemoteFactory(
super.conf.getAbsolutePath(),
- USERNAME, PASSWORD,
+ USERNAME, null, // Do not set default password.
new DefaultPromptUserPassword(),
null, null, null)
.openRemoteSession(prefix + "repositorydoesnotexisthere");
@@ -987,7 +988,7 @@ public class SVNRemoteTests extends SVNT
{
session = new RemoteFactory(
super.conf.getAbsolutePath(),
- USERNAME, PASSWORD,
+ USERNAME, null, // Do not set default password.
new DefaultPromptUserPassword(),
null, handler, null)
.openRemoteSession(getTestRepoUrl());