This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.ypg.liferay.portlet; | |
import org.jboss.arquillian.junit.Arquillian; | |
import org.junit.Test; | |
import org.junit.runner.RunWith; | |
import com.liferay.counter.service.CounterLocalServiceUtil; | |
import com.liferay.portal.kernel.util.Validator; | |
import com.liferay.portal.model.User; | |
import com.liferay.portal.service.UserLocalServiceUtil; | |
@RunWith(Arquillian.class) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<arquillian xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xmlns="http://jboss.org/schema/arquillian" | |
xsi:schemaLocation="http://jboss.org/schema/arquillian http://jboss.org/schema/arquillian/arquillian_1_0.xsd"> | |
<container qualifier="tomcat" default="true"> | |
<configuration> | |
<property name="jmxPort">8099</property> | |
<property name="host">localhost</property> | |
<property name="httpPort">8080</property> | |
<property name="user">tomcat</property> | |
<property name="pass">tomcat</property> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.ypg.liferay.portlet; | |
import org.jboss.arquillian.junit.Arquillian; | |
import org.junit.Test; | |
import org.junit.runner.RunWith; | |
import com.liferay.counter.service.CounterLocalServiceUtil; | |
import com.liferay.portal.kernel.util.Validator; | |
import com.liferay.portal.model.User; | |
import com.liferay.portal.service.UserLocalServiceUtil; | |
@RunWith(Arquillian.class) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<dependency> | |
<groupId>com.liferay.arquillian</groupId> | |
<artifactId>arquillian-liferay-maven-extension</artifactId> | |
<version>1.0.0-SNAPSHOT</version> | |
</dependency> | |
<dependency> | |
<groupId>org.jboss.arquillian.junit</groupId> | |
<artifactId>arquillian-junit-container</artifactId> | |
<version>1.1.5.Final</version> | |
</dependency> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<dependencyManagement> | |
<dependencies> | |
<dependency> | |
<groupId>org.jboss.arquillian</groupId> | |
<artifactId>arquillian-bom</artifactId> | |
<version>1.1.5.Final</version> | |
<scope>import</scope> | |
<type>pom</type> | |
</dependency> | |
</dependencies> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Added for Arquillian support | |
JMX_OPTS="-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.port=8099 -Dcom.sun.management.jmxremote.ssl=false" | |
CATALINA_OPTS="${CATALINA_OPTS} ${JMX_OPTS}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<tomcat-users> | |
<role rolename="tomcat" /> | |
<role rolename="manager-gui" /> | |
<role rolename="manager-script" /> | |
<role rolename="manager-jmx" /> | |
<role rolename="manager-status" /> | |
<user | |
password="tomcat" | |
roles="tomcat,manager-gui,manager-script,manager-jmx,manager-status" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<mirror> | |
<id>artifactory</id> | |
<mirrorOf>*</mirrorOf> | |
<url>http://repository.liferay.com/nexus/content/groups/public> | |
<name>Liferay</name> | |
</mirror> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<tomcat-users> | |
<role rolename="tomcat" /> | |
<role rolename="manager-gui" /> | |
<role rolename="manager-script" /> | |
<role rolename="manager-jmx" /> | |
<role rolename="manager-status" /> | |
<user | |
password="tomcat" | |
roles="tomcat,manager-gui,manager-script,manager-jmx,manager-status" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SECTION #0: Introduction and Presentation | |
========================================= | |
(use slideshow) | |
SECTION #1: Creating a "Report Request" portlet plugin | |
======================================================= | |
1. Create a new MVC portlet plugin project (in eclipse) called "dev-life-report" | |
2. Create a new class com.jardineworks.dev.life.liferay.portlet.report.ReportRequestPortlet in the src/main/java folder with the following definition. |
NewerOlder