Skip to content

Commit

Permalink
update changelog, use constant for property name
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanseifert committed Mar 21, 2024
1 parent fdbe4ac commit 240cc12
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions changes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@
<body>

<release version="5.5.2" date="not released">
<action type="update" dev="koenkicken" issue="36">
MockComponent: Implement isContainer method.
</action>
<action type="update" dev="sseifert" issue="33">
Remove outdated dependency to org.apache.sling.commons.json.
</action>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
*/
package io.wcm.testing.mock.aem;

import static com.day.cq.wcm.api.NameConstants.PN_IS_CONTAINER;
import static org.apache.sling.api.resource.ResourceResolver.PROPERTY_RESOURCE_TYPE;

import java.util.Arrays;
Expand Down Expand Up @@ -160,7 +161,7 @@ public Resource getLocalResource(String name) {

@Override
public boolean isContainer() {
return this.props.get("cq:isContainer", getSuperComponent() != null && getSuperComponent().isContainer());
return this.props.get(PN_IS_CONTAINER, getSuperComponent() != null && getSuperComponent().isContainer());
}

// --- unsupported operations ---
Expand Down

0 comments on commit 240cc12

Please sign in to comment.