<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Runtime error while running JUnit5 AEM Mocks test in Adobe Experience Manager Questions</title>
    <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/runtime-error-while-running-junit5-aem-mocks-test/m-p/454810#M130733</link>
    <description>&lt;P&gt;&lt;SPAN&gt;I was able to get my node property request's working by switching to&amp;nbsp;&lt;STRONG&gt;ResourceResolverType.JCR_MOCK&lt;/STRONG&gt;&amp;nbsp;instead, and correcting my test decencies to match the pom.xml in the example&amp;nbsp;&lt;A href="https://github.com/adobe/aem-guides-wknd" target="_blank" rel="nofollow noreferrer noopener"&gt;https://github.com/adobe/aem-guides-wknd&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 04 Jun 2022 02:38:32 GMT</pubDate>
    <dc:creator>Louis_Felix1</dc:creator>
    <dc:date>2022-06-04T02:38:32Z</dc:date>
    <item>
      <title>Runtime error while running JUnit5 AEM Mocks test</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/runtime-error-while-running-junit5-aem-mocks-test/m-p/423259#M120584</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to use JUnit 5 AEM Mocks(wcm.io) in our existing AEM project. I have included all the required dependencies and there are no compilation errors. However, I get the below error when I try to run my test. Has anyone seen this error and how did you manage to fix it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;java.lang.RuntimeException: Bind method with name bindEventAdmin not found for reference 'eventAdmin' for class org.apache.sling.testing.mock.sling.MockAdapterManagerImpl
	at org.apache.sling.testing.mock.osgi.OsgiServiceUtil.invokeBindUnbindMethod(OsgiServiceUtil.java:717)
	at org.apache.sling.testing.mock.osgi.OsgiServiceUtil.injectServiceReference(OsgiServiceUtil.java:646)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 15 Sep 2021 08:53:56 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/runtime-error-while-running-junit5-aem-mocks-test/m-p/423259#M120584</guid>
      <dc:creator>prateekkumar</dc:creator>
      <dc:date>2021-09-15T08:53:56Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime error while running JUnit5 AEM Mocks test</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/runtime-error-while-running-junit5-aem-mocks-test/m-p/423261#M120586</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;LI-USER uid="17470871"&gt;&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It looks like you have a dependency version mismatch.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. put your aem-mock test dependencies first, and the uber jar AEM dependencies last in your project&lt;/P&gt;&lt;P&gt;2. import the dependendencies matching to the AEM version you compila against from the dependencies poms listed here &lt;A href="http://wcm.io/tooling/maven/aem-dependencies.html" target="_blank"&gt;http://wcm.io/tooling/maven/aem-dependencies.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This will not only includes the matching uber jar, but also the versions of some sling implementation bundles required by sling mock and aem mock, matching those of the AEM version you are using.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Sep 2021 09:15:24 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/runtime-error-while-running-junit5-aem-mocks-test/m-p/423261#M120586</guid>
      <dc:creator>Asutosh_Jena_</dc:creator>
      <dc:date>2021-09-15T09:15:24Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime error while running JUnit5 AEM Mocks test</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/runtime-error-while-running-junit5-aem-mocks-test/m-p/454810#M130733</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I was able to get my node property request's working by switching to&amp;nbsp;&lt;STRONG&gt;ResourceResolverType.JCR_MOCK&lt;/STRONG&gt;&amp;nbsp;instead, and correcting my test decencies to match the pom.xml in the example&amp;nbsp;&lt;A href="https://github.com/adobe/aem-guides-wknd" target="_blank" rel="nofollow noreferrer noopener"&gt;https://github.com/adobe/aem-guides-wknd&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 04 Jun 2022 02:38:32 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/runtime-error-while-running-junit5-aem-mocks-test/m-p/454810#M130733</guid>
      <dc:creator>Louis_Felix1</dc:creator>
      <dc:date>2022-06-04T02:38:32Z</dc:date>
    </item>
  </channel>
</rss>

