cancel
Showing results for 
Search instead for 
Did you mean: 

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

drg-akshat
Champ in-the-making
Champ in-the-making

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 2

douglascrp
World-Class Innovator
World-Class Innovator

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
Star Contributor
Star Contributor

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