From 12e0d028e2633e4a69a269fb7d82c29210e46b22 Mon Sep 17 00:00:00 2001 From: AnuradhaSK Date: Wed, 25 Oct 2023 13:02:16 +0530 Subject: [PATCH] fix integration failures due to new attribute in ApplicationListItem in application api v1 --- .../v1/model/ApplicationListItem.java | 60 ++++++++++++++----- 1 file changed, 44 insertions(+), 16 deletions(-) diff --git a/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/identity/integration/test/rest/api/server/application/management/v1/model/ApplicationListItem.java b/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/identity/integration/test/rest/api/server/application/management/v1/model/ApplicationListItem.java index cbc0983a98e..4aaaa3b25b3 100644 --- a/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/identity/integration/test/rest/api/server/application/management/v1/model/ApplicationListItem.java +++ b/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/identity/integration/test/rest/api/server/application/management/v1/model/ApplicationListItem.java @@ -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; @@ -66,6 +68,7 @@ public static AccessEnum fromValue(String value) { private AccessEnum access = AccessEnum.READ; private String self; + private AssociatedRolesConfig associatedRoles; /** **/ @@ -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) { @@ -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 @@ -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(); }