Last active
November 29, 2016 03:30
-
-
Save jardineworks/880222f6a42759adb06d to your computer and use it in GitHub Desktop.
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) | |
public class ArquillianPortletTest | |
{ | |
@Test | |
public void testUserLocalService() throws Exception | |
{ | |
User user = UserLocalServiceUtil.createUser( CounterLocalServiceUtil.increment() ); | |
if (Validator.isNotNull(user)) | |
assert(true); | |
else | |
assert(false); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment