Closed kalimuthup closed 6 years ago
Fixed !!!!.Its issue with the pom.xml.I added few missing dependent jars in pom file and its working as expected.Please check the dependency list below and if it required add to the code base so that others wont have the issue.
`
<artifactId>org.apache.sling.models.impl</artifactId>
<version>1.4.6</version>
When i try to write test case by using latest propser 11.1.0 , i am getting ExampleSpec » Runtime Unable to initialize JCR_... exception <<< 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 at org.apache.sling.testing.mock.sling.context.ContextResourceResolverFactory.get(ContextResourceResolverFactory.java:66) at org.apache.sling.testing.mock.sling.context.SlingContextImpl.newResourceResolverFactory(SlingContextImpl.java:125) at org.apache.sling.testing.mock.sling.context.SlingContextImpl.resourceResolverFactory(SlingContextImpl.java:130) at org.apache.sling.testing.mock.sling.context.SlingContextImpl.setUp(SlingContextImpl.java:114) at org.apache.sling.testing.mock.sling.junit.SlingContext.access$100(SlingContext.java:40) at org.apache.sling.testing.mock.sling.junit.SlingContext$1.before(SlingContext.java:127).
Below are the pom file inclusion i have done as part of my project.Please shed some light on it . ` cglib
`
The Complete Dependency list is given below `
Sample Empty Class -- import com.icfolson.aem.prosper.specs.ProsperSpec class ExampleSpec extends ProsperSpec { def setupSpec() { // runs before first feature method, create test content and initialize shared resources here } }