mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Merged HEAD-BUG-FIX (5.1/Cloud) to HEAD (5.1/Cloud)
93988: Merged 5.0.N (5.0.1) to HEAD-BUG-FIX (5.1/Cloud) 93891: MNT-13089: RepoAdminServiceImplTest hangs on SQL Server - Disabled SubscriptionServiceActivitiesTest.testFollowingActivity and MultiTServiceImplTest.testGetUserDomain in case of MS SQL Server. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@95028 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -58,6 +58,8 @@ import org.alfresco.util.test.junitrules.TemporarySites;
|
||||
import org.apache.commons.lang.mutable.MutableInt;
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.hibernate.dialect.Dialect;
|
||||
import org.hibernate.dialect.SQLServerDialect;
|
||||
import org.json.JSONException;
|
||||
import org.json.JSONObject;
|
||||
import org.json.JSONTokener;
|
||||
@@ -114,7 +116,8 @@ public class SubscriptionServiceActivitiesTest
|
||||
protected static FeedGenerator feedGenerator;
|
||||
protected static RetryingTransactionHelper transactionHelper;
|
||||
protected static NodeArchiveService nodeArchiveService;
|
||||
|
||||
protected static Dialect dialect;
|
||||
|
||||
private static Scheduler QUARTZ_SCHEDULER;
|
||||
|
||||
// Test Sites - these are all created by USER_ONE & hence USER_ONE is the SiteManager.
|
||||
@@ -143,6 +146,7 @@ public class SubscriptionServiceActivitiesTest
|
||||
contentService = (ContentService) ctx.getBean("ContentService");
|
||||
nodeArchiveService = (NodeArchiveService)ctx.getBean("nodeArchiveService");
|
||||
transactionHelper = (RetryingTransactionHelper) ctx.getBean("retryingTransactionHelper");
|
||||
dialect = (Dialect) ctx.getBean("dialect");
|
||||
|
||||
ChildApplicationContextFactory activitiesFeed = (ChildApplicationContextFactory) ctx.getBean("ActivitiesFeed");
|
||||
ApplicationContext activitiesFeedCtx = activitiesFeed.getApplicationContext();
|
||||
@@ -232,6 +236,13 @@ public class SubscriptionServiceActivitiesTest
|
||||
|
||||
@Test public void testFollowingActivity() throws Exception
|
||||
{
|
||||
// disable in case of SQL Server
|
||||
// see MNT-13089
|
||||
if (dialect instanceof SQLServerDialect)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
// We'll change things in the system in order to cause the generation of activity events and compare the feeds with these totals as we go.
|
||||
// Initially, both users have zero activity feed entries.
|
||||
// Java's requirement for final modifiers on variables accessed within inner classes means we can't use simple ints here.
|
||||
|
Reference in New Issue
Block a user