mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-26 05:52:06 +01:00
Allow empty username/passwords in integration test
This commit is contained in:
parent
c74d16f68a
commit
8810f17460
1 changed files with 5 additions and 1 deletions
|
@ -266,7 +266,11 @@ public final class Configuration {
|
||||||
String accountTwoPassword = properties.getProperty("accountTwoPassword");
|
String accountTwoPassword = properties.getProperty("accountTwoPassword");
|
||||||
String accountThreeUsername = properties.getProperty("accountThreeUsername");
|
String accountThreeUsername = properties.getProperty("accountThreeUsername");
|
||||||
String accountThreePassword = properties.getProperty("accountThreePassword");
|
String accountThreePassword = properties.getProperty("accountThreePassword");
|
||||||
builder.setUsernamesAndPassword(accountOneUsername, accountOnePassword, accountTwoUsername, accountTwoPassword, accountThreeUsername, accountThreePassword);
|
if (accountOneUsername != null || accountOnePassword != null || accountTwoUsername != null
|
||||||
|
|| accountTwoPassword != null || accountThreeUsername != null || accountThreePassword != null) {
|
||||||
|
builder.setUsernamesAndPassword(accountOneUsername, accountOnePassword, accountTwoUsername,
|
||||||
|
accountTwoPassword, accountThreeUsername, accountThreePassword);
|
||||||
|
}
|
||||||
|
|
||||||
builder.setDebug(properties.getProperty("debug"));
|
builder.setDebug(properties.getProperty("debug"));
|
||||||
builder.setEnabledTests(properties.getProperty("enabledTests"));
|
builder.setEnabledTests(properties.getProperty("enabledTests"));
|
||||||
|
|
Loading…
Reference in a new issue