Skip to content

thodte/slingtesting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

slingtesting with JCR_MOCK oder JCR_OAK

Trying to use slick mock with resourcetyperesolver other like the default.

Changing to default it works. But an unsupportedoperation exception is raised because I wan't to use queries.

JCR_MOCK and JCR_OAK doesn't work in this setup. The following excrption is raised

org.apache.sling.testing.mock.osgi.ReferenceViolationException: Multiple matches found for unary reference 'factory' for class de.htsolutions.sling.testing.FormularService

After debugging I find the the reason: There are two ResourceResolverFactory instances in the context and the framework doesn't know which to use.

Problem in setup or bug or a thinking error by me?

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages