You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by el...@apache.org on 2017/08/17 04:08:39 UTC
svn commit: r1805253 - in
/directory/studio/branches/studio-value/tests/test.integration.core/src/main/java/org/apache/directory/studio/test/integration/core:
ConnectionWrapperTestBase.java DirectoryApiConnectionWrapperTest.java
Author: elecharny
Date: Thu Aug 17 04:08:39 2017
New Revision: 1805253
URL: http://svn.apache.org/viewvc?rev=1805253&view=rev
Log:
Added the connection timeout parameter
Modified:
directory/studio/branches/studio-value/tests/test.integration.core/src/main/java/org/apache/directory/studio/test/integration/core/ConnectionWrapperTestBase.java
directory/studio/branches/studio-value/tests/test.integration.core/src/main/java/org/apache/directory/studio/test/integration/core/DirectoryApiConnectionWrapperTest.java
Modified: directory/studio/branches/studio-value/tests/test.integration.core/src/main/java/org/apache/directory/studio/test/integration/core/ConnectionWrapperTestBase.java
URL: http://svn.apache.org/viewvc/directory/studio/branches/studio-value/tests/test.integration.core/src/main/java/org/apache/directory/studio/test/integration/core/ConnectionWrapperTestBase.java?rev=1805253&r1=1805252&r2=1805253&view=diff
==============================================================================
--- directory/studio/branches/studio-value/tests/test.integration.core/src/main/java/org/apache/directory/studio/test/integration/core/ConnectionWrapperTestBase.java (original)
+++ directory/studio/branches/studio-value/tests/test.integration.core/src/main/java/org/apache/directory/studio/test/integration/core/ConnectionWrapperTestBase.java Thu Aug 17 04:08:39 2017
@@ -144,7 +144,7 @@ public abstract class ConnectionWrapperT
{
StudioProgressMonitor monitor = getProgressMonitor();
ConnectionParameter connectionParameter = new ConnectionParameter( null, LOCALHOST, ldapServer.getPort(),
- EncryptionMethod.NONE, NetworkProvider.JNDI, AuthenticationMethod.NONE, null, null, null, true, null );
+ EncryptionMethod.NONE, NetworkProvider.JNDI, AuthenticationMethod.NONE, null, null, null, true, null, 30L );
Connection connection = new Connection( connectionParameter );
ConnectionWrapper connectionWrapper = connection.getConnectionWrapper();
@@ -175,7 +175,7 @@ public abstract class ConnectionWrapperT
// invalid port
monitor = getProgressMonitor();
connectionParameter = new ConnectionParameter( null, LOCALHOST, AvailablePortFinder.getNextAvailable(),
- EncryptionMethod.NONE, provider, AuthenticationMethod.NONE, null, null, null, true, null );
+ EncryptionMethod.NONE, provider, AuthenticationMethod.NONE, null, null, null, true, null, 30L );
connection = new Connection( connectionParameter );
connectionWrapper = connection.getConnectionWrapper();
connectionWrapper.connect( monitor );
@@ -197,7 +197,7 @@ public abstract class ConnectionWrapperT
// unknown host
monitor = getProgressMonitor();
connectionParameter = new ConnectionParameter( null, "555.555.555.555", ldapServer.getPort(),
- EncryptionMethod.NONE, provider, AuthenticationMethod.NONE, null, null, null, true, null );
+ EncryptionMethod.NONE, provider, AuthenticationMethod.NONE, null, null, null, true, null, 30L );
connection = new Connection( connectionParameter );
connectionWrapper = connection.getConnectionWrapper();
connectionWrapper.connect( monitor );
@@ -229,7 +229,7 @@ public abstract class ConnectionWrapperT
StudioProgressMonitor monitor = getProgressMonitor();
ConnectionParameter connectionParameter = new ConnectionParameter( null, LOCALHOST, ldapServer.getPort(),
EncryptionMethod.NONE, provider, AuthenticationMethod.SIMPLE, "uid=admin,ou=system", "secret", null, true,
- null );
+ null, 30L );
Connection connection = new Connection( connectionParameter );
ConnectionWrapper connectionWrapper = connection.getConnectionWrapper();
@@ -260,7 +260,7 @@ public abstract class ConnectionWrapperT
// simple auth without principal and credential
monitor = getProgressMonitor();
connectionParameter = new ConnectionParameter( null, LOCALHOST, ldapServer.getPort(), EncryptionMethod.NONE,
- provider, AuthenticationMethod.SIMPLE, "uid=admin", "invalid", null, true, null );
+ provider, AuthenticationMethod.SIMPLE, "uid=admin", "invalid", null, true, null, 30L );
connection = new Connection( connectionParameter );
connectionWrapper = connection.getConnectionWrapper();
connectionWrapper.connect( monitor );
@@ -280,7 +280,7 @@ public abstract class ConnectionWrapperT
// simple auth with invalid principal and credential
monitor = getProgressMonitor();
connectionParameter = new ConnectionParameter( null, LOCALHOST, ldapServer.getPort(), EncryptionMethod.NONE,
- provider, AuthenticationMethod.SIMPLE, "uid=admin,ou=system", "bar", null, true, null );
+ provider, AuthenticationMethod.SIMPLE, "uid=admin,ou=system", "bar", null, true, null, 30L );
connection = new Connection( connectionParameter );
connectionWrapper = connection.getConnectionWrapper();
connectionWrapper.connect( monitor );
@@ -663,7 +663,7 @@ public abstract class ConnectionWrapperT
// simple auth without principal and credential
ConnectionParameter connectionParameter = new ConnectionParameter( null, LOCALHOST, ldapServer.getPort(),
EncryptionMethod.NONE, provider, AuthenticationMethod.SIMPLE, "uid=admin,ou=system", "secret", null, false,
- null );
+ null, 30L );
Connection connection = new Connection( connectionParameter );
Modified: directory/studio/branches/studio-value/tests/test.integration.core/src/main/java/org/apache/directory/studio/test/integration/core/DirectoryApiConnectionWrapperTest.java
URL: http://svn.apache.org/viewvc/directory/studio/branches/studio-value/tests/test.integration.core/src/main/java/org/apache/directory/studio/test/integration/core/DirectoryApiConnectionWrapperTest.java?rev=1805253&r1=1805252&r2=1805253&view=diff
==============================================================================
--- directory/studio/branches/studio-value/tests/test.integration.core/src/main/java/org/apache/directory/studio/test/integration/core/DirectoryApiConnectionWrapperTest.java (original)
+++ directory/studio/branches/studio-value/tests/test.integration.core/src/main/java/org/apache/directory/studio/test/integration/core/DirectoryApiConnectionWrapperTest.java Thu Aug 17 04:08:39 2017
@@ -104,7 +104,7 @@ public class DirectoryApiConnectionWrapp
StudioProgressMonitor monitor = getProgressMonitor();
ConnectionParameter connectionParameter = new ConnectionParameter( null, LOCALHOST, ldapServer.getPort(),
EncryptionMethod.NONE, NetworkProvider.APACHE_DIRECTORY_LDAP_API, AuthenticationMethod.SIMPLE,
- "uid=admin,ou=system", "secret", null, true, null );
+ "uid=admin,ou=system", "secret", null, true, null, 30L );
Connection connection = new Connection( connectionParameter );
BrowserConnection browserConnection = new BrowserConnection( connection );
@@ -125,7 +125,7 @@ public class DirectoryApiConnectionWrapp
final StudioProgressMonitor monitor = getProgressMonitor();
final ConnectionParameter connectionParameter = new ConnectionParameter( null, LOCALHOST, ldapServer.getPort(),
EncryptionMethod.NONE, NetworkProvider.APACHE_DIRECTORY_LDAP_API, AuthenticationMethod.SIMPLE,
- "uid=admin,ou=system", "secret", null, true, null );
+ "uid=admin,ou=system", "secret", null, true, null, 30L );
final Connection connection = new Connection( connectionParameter );
final BrowserConnection browserConnection = new BrowserConnection( connection );