[JIRA] (WTES-60) Junit5 throwing error when I use JCR_OAK

9 views
Skip to first unread message

Subramanya Vemala (JIRA)

unread,
Mar 30, 2021, 11:49:42 PM3/30/21
to wcm-i...@googlegroups.com

[ https://wcm-io.atlassian.net/browse/WTES-60?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Subramanya Vemala updated WTES-60:
----------------------------------
Summary: Junit5 throwing error when I use JCR_OAK (was: Junit5 throwing error when I use JCR+_)

> Junit5 throwing error when I use JCR_OAK
> -------------------------------------------
>
> Key: WTES-60
> URL: https://wcm-io.atlassian.net/browse/WTES-60
> Project: wcm.io Testing
> Issue Type: Bug
> Components: AEM Mocks
> Affects Versions: AEM Mocks 3.2.0
> Reporter: Subramanya Vemala
> Priority: Blocker
>
> I am using the AEM maven archetype 25.
> I found that below code in JUNIT5 works
> private final AemContext aemContext = new AemContext(ResourceResolverType.JCR_MOCK);
> where as this code throws exception
> private final AemContext aemContext = new AemContext(ResourceResolverType.JCR_OAK);
> I using JCR_OAK as the test class is testing the functionalities of AccessControlManager class .
> I get below error:
> java.lang.RuntimeException: Unable to initialize JCR_OAK resource resolver factory: Unable to invoke method 'activate' for class org.apache.sling.testing.mock.sling.oak.OakMockSlingRepository
> Caused by: java.lang.NoSuchMethodError: org.apache.jackrabbit.oak.plugins.nodetype.constraint.Constraints.asPredicate(ILjava/lang/String;)Ljava/util/function/Predicate;



--
This message was sent by Atlassian Jira
(v1001.0.0-SNAPSHOT#100156)
Reply all
Reply to author
Forward
0 new messages