Skip to content

Commit ac537fb

Browse files
author
Chris Wiechmann
committed
Unit-Test Bugfixing
1 parent edd3456 commit ac537fb

3 files changed

Lines changed: 10 additions & 3 deletions

File tree

modules/apim-adapter/src/main/java/com/axway/apim/adapter/APIManagerAdapter.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,9 @@ public static synchronized APIManagerAdapter getInstance() throws AppException {
133133
APIManagerAdapter.instance = new APIManagerAdapter();
134134
if(!TestIndicator.getInstance().isTestRunning()) {
135135
LOG.info("Successfully connected to API-Manager (" + getApiManagerVersion() + ") on: " + CommandParameters.getInstance().getAPIManagerURL());
136+
} else {
137+
APIManagerAdapter.apiManagerVersion = "7.7.0";
138+
LOG.info("Successfully connected to MOCKED API-Manager (" + getApiManagerVersion() + ")");
136139
}
137140
}
138141
return APIManagerAdapter.instance;

modules/apim-adapter/src/main/java/com/axway/apim/api/model/Organization.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,13 +161,12 @@ public String getIsTrial() {
161161
public void setIsTrial(String isTrial) {
162162
this.isTrial = isTrial;
163163
}
164-
164+
165165
@Override
166166
public boolean equals(Object other) {
167167
if(other == null) return false;
168168
if(other instanceof Organization) {
169-
Organization otherOrg = (Organization)other;
170-
return StringUtils.equals(otherOrg.getName(), this.getName());
169+
return StringUtils.equals(((Organization)other).getName(), this.getName());
171170
}
172171
return false;
173172
}

modules/users/src/main/java/com/axway/apim/users/lib/UserExportCLIOptions.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ public UserExportCLIOptions(String[] args) throws ParseException {
2222
option.setArgName("*Mark*");
2323
options.addOption(option);
2424

25+
option = new Option("email", true, "Filter users with the specified Email-Address. You may use wildcards at the end or beginning.");
26+
option.setRequired(false);
27+
option.setArgName("*@axway.com*");
28+
options.addOption(option);
29+
2530
option = new Option("type", true, "Filter users with specific type. External users are managed in external system such as LDAP");
2631
option.setRequired(false);
2732
option.setArgName("internal|external");

0 commit comments

Comments
 (0)