Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: Arquillian JUnit TestCases
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")
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")
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?
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?
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™