Skip to content

Commit

Permalink
fix var type.
Browse files Browse the repository at this point in the history
  • Loading branch information
wildone committed Jun 5, 2021
1 parent 481364d commit 3458b9d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ protected void ready() {
boolean isShowRoot = ("showRoot").equals(appearanceOption);
boolean isShowNothing = ("showNothing").equals(appearanceOption);

LinkedHashMap<String, Map> languageMap = getTagsAsAdmin(
LinkedHashMap<String, Map<String, String>> languageMap = getTagsAsAdmin(
getSlingScriptHelper(),
tagsFilterList,
getRequest().getLocale());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ public void testGetTagsAsAdmin_Success_GetTagChildren() {
when(tagVM1.get("description", null)).thenReturn("description");
when(tagVM1.containsKey("title")).thenReturn(true);
when(tagVM1.containsKey("description")).thenReturn(true);
LinkedHashMap<String, Map> actualTagsMap = TagUtil.getTagsAsAdmin(sling, tagPaths, Locale.getDefault(), attributesToRead, true);
LinkedHashMap<String, Map<String, String>> actualTagsMap = TagUtil.getTagsAsAdmin(sling, tagPaths, Locale.getDefault(), attributesToRead, true);
Assertions.assertEquals("/content/cq:tags/gender/male", actualTagsMap.get("tagId").get("path"));
Assertions.assertEquals("localId", actualTagsMap.get("tagId").get("tagid"));
Assertions.assertEquals("description", actualTagsMap.get("tagId").get("description"));
Expand All @@ -193,7 +193,7 @@ public void testGetTagsAsAdmin_Success_NoTagChildren() {
when(resource1.getValueMap()).thenReturn(tagVM1);
when(tagVM1.containsKey("value")).thenReturn(true);
when(tagVM1.get("value", "Male")).thenReturn("tagValue");
LinkedHashMap<String, Map> actualTagsMap = TagUtil.getTagsAsAdmin(sling, tagPaths, Locale.getDefault());
LinkedHashMap<String, Map<String, String>> actualTagsMap = TagUtil.getTagsAsAdmin(sling, tagPaths, Locale.getDefault());
Assertions.assertEquals("/content/cq:tags/gender/male", actualTagsMap.get("tagId").get("path"));
Assertions.assertEquals("localId", actualTagsMap.get("tagId").get("tagid"));
Assertions.assertEquals("Male Clothing", actualTagsMap.get("tagId").get("description"));
Expand Down

0 comments on commit 3458b9d

Please sign in to comment.