Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tags mocking isssue | AEM 6.5 | JAVA 11 #29

Open
sagaciousagi opened this issue Jul 27, 2020 · 1 comment
Open

Tags mocking isssue | AEM 6.5 | JAVA 11 #29

sagaciousagi opened this issue Jul 27, 2020 · 1 comment

Comments

@sagaciousagi
Copy link

We have upgraded from AEM 6.3(JAVA 8) to AEM 6.5(JAVA 11). After upgrade, unit test cases related to tags stopped working.

Can you please let us know how to mock tags with AEM 6.5(JAVA11)?

nodeBuilder.content {
cq:tags("sling:Folder") {
fruit("cq:Tag") {
apple() {
"red"("cq:Tag", "jcr:title": "Red")
"green"("cq:Tag", "jcr:title": "Green")
}
}
}
}

nodeBuilder.etc{
tags("sling:Folder") {
fruit("cq:Tag") {
apple() {
"red"("cq:Tag", "jcr:title": "Red")
"green"("cq:Tag", "jcr:title": "Green")
}
}
}
}

@markdaugherty
Copy link
Collaborator

You can remove the /etc/tags folder.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants