Skip to content
Snippets Groups Projects
Commit 6234fd37 authored by OZGCloud's avatar OZGCloud
Browse files

rename buildOrganisationsEinheitMapperConfig ->...

rename buildOrganisationsEinheitMapperConfig -> buildOrganisationsEinheitIdMapperConfig; change organisationsEinheitIdsMapper config jsonType int -> String
parent 5d280da2
No related branches found
No related tags found
No related merge requests found
......@@ -38,16 +38,16 @@ class ProtocolMapperRepresentationHelper {
public ProtocolMapperRepresentation createOrganisationsEinheitIdMapper() {
log.log(Level.FINE, "Create createOrganisationsEinheitIdMapper...");
return createUserAttributeMapper(ORGANISATIONS_EINHEIT_ID_MAPPER_NAME, buildOrganisationsEinheitMapperConfig());
return createUserAttributeMapper(ORGANISATIONS_EINHEIT_ID_MAPPER_NAME, buildOrganisationsEinheitIdMapperConfig());
}
Map<String, String> buildOrganisationsEinheitMapperConfig() {
Map<String, String> buildOrganisationsEinheitIdMapperConfig() {
var config = new HashMap<String, String>();
config.put(CONFIG_ACCESS_TOKEN_CLAIM_KEY, "true");
config.put(CONFIG_AGGREGATE_ATTRS_KEY, "true");
config.put(CONFIG_CLAIM_NAME_KEY, "organisationseinheitId");
config.put(CONFIG_ID_TOKEN_CLAIM_KEY, "true");
config.put(CONFIG_JSON_TYPE_LABEL_KEY, "int");
config.put(CONFIG_JSON_TYPE_LABEL_KEY, "String");
config.put(CONFIG_MULTIVALUED_KEY, "true");
config.put(CONFIG_USER_ATTRIBUTE_KEY, "organisationseinheitId");
config.put(CONFIG_USERINFO_TOKEN_CLAIM_KEY, "true");
......
......@@ -46,7 +46,7 @@ class ProtocolMapperRepresentationHelperTest {
void shouldBuildConfig() {
create();
verify(helper).buildOrganisationsEinheitMapperConfig();
verify(helper).buildOrganisationsEinheitIdMapperConfig();
}
@DisplayName("build config")
......@@ -85,7 +85,7 @@ class ProtocolMapperRepresentationHelperTest {
void shouldSetJsonTypeLabel() {
var config = buildConfig();
assertThat(config).containsEntry(ProtocolMapperRepresentationHelper.CONFIG_JSON_TYPE_LABEL_KEY, "int");
assertThat(config).containsEntry(ProtocolMapperRepresentationHelper.CONFIG_JSON_TYPE_LABEL_KEY, "String");
}
@Test
......@@ -110,7 +110,7 @@ class ProtocolMapperRepresentationHelperTest {
}
private Map<String, String> buildConfig() {
return helper.buildOrganisationsEinheitMapperConfig();
return helper.buildOrganisationsEinheitIdMapperConfig();
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment