Hello Guys,
I am trying to test the PageManager.copy() with wcm.io, but am unable to do so. This is because the mockPageManager.copy() is not implemented. What are some other ways for me to test the PageManager.copy() command?
io.atlassian.net/browse/WTES-17?page=com.atlassian.jira.plugin.system.issuetabpanels%3Aall-tabpanel
java.lang.UnsupportedOperationException
at org.apache.sling.testing.mock.jcr.MockSession.move(MockSession.java:424)
Solved! Go to Solution.
Can you check the below file, if helps, there mock functionality is implemented.
https://wcm.io/testing/aem-mock/junit4/apidocs/io/wcm/testing/mock/aem/MockPageManagerFactory.html
https://wcm.io/testing/aem-mock//xref/io/wcm/testing/mock/aem/MockPageManager.html
Views
Replies
Total Likes
Can you check the below file, if helps, there mock functionality is implemented.
https://wcm.io/testing/aem-mock/junit4/apidocs/io/wcm/testing/mock/aem/MockPageManagerFactory.html
https://wcm.io/testing/aem-mock//xref/io/wcm/testing/mock/aem/MockPageManager.html
Views
Replies
Total Likes
Yeah, we can see that the MockPageManager.copy is not implemented.
@Override
294 public Page copy(final Page page, final String destination, final String beforeName, final boolean shallow,
295 final boolean resolveConflict) {
296 throw new UnsupportedOperationException();
297 }
https://wcm.io/testing/aem-mock//xref/io/wcm/testing/mock/aem/MockPageManager.html
What is another way to test this?
Views
Replies
Total Likes
Views
Likes
Replies