RE: Arquillian JUnit TestCases

thumbnail
Ketan Savaliya, modified 6 Years ago. Regular Member Posts: 117 Join Date: 3/3/11 Recent Posts
Hi Master,

I am working with Liferay 7.1. Also have integrate Arquillian for JUnit.

Do we need to write JUnit for Controller/Portlet class ? 


If yes then how can we moke liferay objects using Arquillian framework ? I.e. PortletSession, RenderRequest or ServiceContext  

Lets says i want to write test case for doview().

session.getAttribute("TOKEN")
thumbnail
Ketan Savaliya, modified 6 Years ago. Regular Member Posts: 117 Join Date: 3/3/11 Recent Posts
Hello All,

My above question is still pending and not found any solution. 


Moving forward.... I am trying to integrate JACOCO for Arquillian TestCases coverage. Using below reference links 

https://dev.liferay.com/es/develop/tutorials/-/knowledge_base/7-0/jacoco-code-coverage-example
https://github.com/liferay-labs/arquillian-blade-example/blob/master/build.gradle


Buil while i am tying to apply step given in links... i am getting below error.

unable to resolve class RenameDependencyClosure

Actually not found the way to apply below plugins.
apply plugin: "com.liferay.plugin"

Liferay Version : ce-portal-7.1.0-ga1
Gralde Version : 3.0


Any one face this problem or have any detail on this?