List of usage examples for com.liferay.portal.kernel.test.util TestPropsValues JUNIT_DELAY_FACTOR
int JUNIT_DELAY_FACTOR
To view the source code for com.liferay.portal.kernel.test.util TestPropsValues JUNIT_DELAY_FACTOR.
Click Source Link
From source file:com.liferay.blogs.service.test.BlogsEntryStatusTransitionTest.java
License:Open Source License
protected void checkSocialActivity(int activityType, int expectedCount) throws Exception { Thread.sleep(500 * TestPropsValues.JUNIT_DELAY_FACTOR); List<SocialActivity> socialActivities = SocialActivityLocalServiceUtil .getGroupActivities(group.getGroupId(), QueryUtil.ALL_POS, QueryUtil.ALL_POS); int count = 0; for (SocialActivity socialActivity : socialActivities) { if ((activityType == ACTIVITY_KEY_ANY) || (activityType == socialActivity.getType())) { count = count + 1;/*from w ww . j ava2s.c o m*/ } } Assert.assertEquals(expectedCount, count); }