Skip to content

Commit

Permalink
GroupTest should execute even if ScimServiceProviderConfig does not e…
Browse files Browse the repository at this point in the history
…xist

Fix for wso2-incubator#10
  • Loading branch information
gclayburg committed Mar 6, 2018
1 parent c059821 commit 17e21da
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import info.wso2.scim2.compliance.exception.ComplianceException;
import info.wso2.scim2.compliance.exception.GeneralComplianceException;
import info.wso2.scim2.compliance.httpclient.HTTPClient;
import info.wso2.scim2.compliance.objects.SCIMServiceProviderConfig;
import info.wso2.scim2.compliance.protocol.ComplianceTestMetaDataHolder;
import info.wso2.scim2.compliance.protocol.ComplianceUtils;
import info.wso2.scim2.compliance.tests.common.ResponseValidateTests;
Expand Down Expand Up @@ -76,7 +77,8 @@ public ArrayList<TestResult> performTest() throws ComplianceException {
if (annos != null) {
try {
if(method.getName().equals("PatchGroupTest")){
if (complianceTestMetaDataHolder.getScimServiceProviderConfig().getPatchSupported()){
SCIMServiceProviderConfig scimServiceProviderConfig = complianceTestMetaDataHolder.getScimServiceProviderConfig();
if (scimServiceProviderConfig != null && scimServiceProviderConfig.getPatchSupported()){
testResults.add((TestResult) method.invoke(this));
} else {
testResults.add(new TestResult(TestResult.SKIPPED,
Expand Down

0 comments on commit 17e21da

Please sign in to comment.