Skip to content

Commit

Permalink
Merge pull request #17191 from AnuradhaSK/fix-int-test
Browse files Browse the repository at this point in the history
Fix integration failures due to new attribute in ApplicationListItem in application api v1
  • Loading branch information
AnuradhaSK committed Oct 25, 2023
2 parents 2b37bd0 + 12e0d02 commit 30eb37a
Showing 1 changed file with 44 additions and 16 deletions.
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
/*
* Copyright (c) 2019, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
* Copyright (c) 2019-2023, WSO2 LLC. (http://www.wso2.com).
*
* WSO2 LLC. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/

package org.wso2.identity.integration.test.rest.api.server.application.management.v1.model;

Expand Down Expand Up @@ -66,6 +68,7 @@ public static AccessEnum fromValue(String value) {

private AccessEnum access = AccessEnum.READ;
private String self;
private AssociatedRolesConfig associatedRoles;

/**
**/
Expand Down Expand Up @@ -212,6 +215,28 @@ public void setClientId(String clientId) {
this.clientId = clientId;
}

/**
*
**/
public ApplicationListItem associatedRoles(AssociatedRolesConfig associatedRoles) {

this.associatedRoles = associatedRoles;
return this;
}

@ApiModelProperty(value = "")
@JsonProperty("associatedRoles")
@Valid
public AssociatedRolesConfig getAssociatedRoles() {

return associatedRoles;
}

public void setAssociatedRoles(AssociatedRolesConfig associatedRoles) {

this.associatedRoles = associatedRoles;
}

@Override
public boolean equals(java.lang.Object o) {

Expand All @@ -228,12 +253,14 @@ public boolean equals(java.lang.Object o) {
Objects.equals(this.image, applicationListItem.image) &&
Objects.equals(this.accessUrl, applicationListItem.accessUrl) &&
Objects.equals(this.access, applicationListItem.access) &&
Objects.equals(this.self, applicationListItem.self);
Objects.equals(this.self, applicationListItem.self) &&
Objects.equals(this.associatedRoles, applicationListItem.associatedRoles);
}

@Override
public int hashCode() {
return Objects.hash(id, name, description, image, accessUrl, access, self);

return Objects.hash(id, name, description, image, accessUrl, access, self, associatedRoles);
}

@Override
Expand All @@ -249,6 +276,7 @@ public String toString() {
sb.append(" accessUrl: ").append(toIndentedString(accessUrl)).append("\n");
sb.append(" access: ").append(toIndentedString(access)).append("\n");
sb.append(" self: ").append(toIndentedString(self)).append("\n");
sb.append(" associatedRoles: ").append(toIndentedString(associatedRoles)).append("\n");
sb.append("}");
return sb.toString();
}
Expand Down

0 comments on commit 30eb37a

Please sign in to comment.