How to write Junit test cases for webscripts for Alfresco 5.0.1?

cancel
Showing results for 
Search instead for 
Did you mean: 
drg-akshat
Member II

How to write Junit test cases for webscripts for Alfresco 5.0.1?

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

2 Replies
douglascrp
Advanced II

Re: How to write Junit test cases for webscripts for Alfresco 5.0.1?

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-ol... 

gluck113
Established Member

Re: How to write Junit test cases for webscripts for Alfresco 5.0.1?

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/alfresc...

Feel free to navigate and see other examples in the repo