Merged HEAD-BUG-FIX (5.1/Cloud) to HEAD (5.1/Cloud)

94078: Merged 5.0.N (5.0.1) to HEAD-BUG-FIX (5.1/Cloud)
      94055: MNT-13089 Integration tests hanging on SQL Server
        Set the db.txn.isolation system property to 4096 when running on SQLServer - this was probably the problem from the beginning
        Plug back tests MultiTServiceImplTest.testGetName(), MultiTServiceImplTest.testGetUserDomain() and SubscriptionServiceActivitiesTest.testFollowingActivity() on SQLServer


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@95041 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Alan Davis
2015-01-31 15:31:54 +00:00
parent 4c2947f897
commit df3bc3d923
2 changed files with 1 additions and 29 deletions

View File

@@ -58,8 +58,6 @@ 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;
@@ -116,8 +114,7 @@ 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.
@@ -146,7 +143,6 @@ 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();
@@ -236,13 +232,6 @@ 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.