Skip to content

Instantly share code, notes, and snippets.

@jardineworks
Last active August 29, 2015 14:26
Show Gist options
  • Save jardineworks/2b3106a27550210b5aec to your computer and use it in GitHub Desktop.
Save jardineworks/2b3106a27550210b5aec to your computer and use it in GitHub Desktop.
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