As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
I'm writing a DeclarativeWebscript and Unable to write the Junit test cases for it. Kindly guide me how can I proceed for this and got the code coverage in sonar.
Thanks,
Akshat
I believe you can find a lot of samples in the Alfresco's source code.
Check this out community-edition-old/projects/remote-api/source/test-java at master · Alfresco/community-edition-old · GitHub
Hey anybody googling for the same question.
Alfresco has changed their github projects, here is a concrete implementation : https://github.com/Alfresco/alfresco-community-repo/blob/master/remote-api/src/test/java/org/alfresco/repo/web/scripts/action/RunningActionRestApiTest.java
Feel free to navigate and see other examples in the repo