Skip to content

Commit

Permalink
Fix ScimUserEndpointsAliasMockMvcTests
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianhoelzl-sap committed Aug 23, 2024
1 parent 4e4d820 commit e7fc765
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import org.cloudfoundry.identity.uaa.scim.ScimUser;
import org.cloudfoundry.identity.uaa.scim.ScimUserAliasHandler;
import org.cloudfoundry.identity.uaa.scim.jdbc.JdbcScimUserProvisioning;
import org.cloudfoundry.identity.uaa.scim.services.ScimUserService;
import org.cloudfoundry.identity.uaa.util.JsonUtils;
import org.cloudfoundry.identity.uaa.zone.IdentityZone;
import org.cloudfoundry.identity.uaa.zone.IdentityZoneConfiguration;
Expand Down Expand Up @@ -55,6 +56,7 @@ public class ScimUserEndpointsAliasMockMvcTests extends AliasMockMvcTestBase {
private IdentityProviderEndpoints identityProviderEndpoints;
private ScimUserAliasHandler scimUserAliasHandler;
private ScimUserEndpoints scimUserEndpoints;
private ScimUserService scimUserService;

@BeforeEach
void setUp() throws Exception {
Expand All @@ -64,6 +66,7 @@ void setUp() throws Exception {
identityProviderEndpoints = requireNonNull(webApplicationContext.getBean(IdentityProviderEndpoints.class));
scimUserAliasHandler = requireNonNull(webApplicationContext.getBean(ScimUserAliasHandler.class));
scimUserEndpoints = requireNonNull(webApplicationContext.getBean(ScimUserEndpoints.class));
scimUserService = requireNonNull(webApplicationContext.getBean(ScimUserService.class));
}

@Nested
Expand Down Expand Up @@ -1707,5 +1710,6 @@ protected void arrangeAliasFeatureEnabled(final boolean enabled) {
ReflectionTestUtils.setField(identityProviderEndpoints, "aliasEntitiesEnabled", enabled);
ReflectionTestUtils.setField(scimUserAliasHandler, "aliasEntitiesEnabled", enabled);
ReflectionTestUtils.setField(scimUserEndpoints, "aliasEntitiesEnabled", enabled);
ReflectionTestUtils.setField(scimUserService, "aliasEntitiesEnabled", enabled);
}
}

0 comments on commit e7fc765

Please sign in to comment.