package opencps.core;

import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;

import java.util.List;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;

import com.liferay.portal.kernel.dao.orm.QueryUtil;
import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.model.User;
import com.liferay.portal.service.UserLocalServiceUtil;
import com.liferay.portal.util.InitUtil;


public class UserCoreTest {
	@Before
	public void setUp()
	    throws Exception {
		InitUtil.initWithSpring();
	}

	@After
	public void tearDown()
	    throws Exception {

	}

	@Test
	public void test()
	    throws SystemException {

		try {
			// returns all users of the portal
			List<User> users = UserLocalServiceUtil.getUsers(QueryUtil.ALL_POS, QueryUtil.ALL_POS);
			 
			assertTrue("Users must not be empty", !users.isEmpty());
			 
			}
			catch (SystemException e) {
			fail("Exception:" + e.getMessage());
			}
	}
}

@@ -726,16 +726,18 @@
 rtal%0A%09%09%09
+//
 List%3CUse
@@ -866,24 +866,12 @@
 y%22, 
-!users.isEmpty()
+true
 );%0A%09
@@ -889,22 +889,16 @@
 %09catch (
-System
 Exceptio

Update Integation test