diff --git a/src/test/java/org/alfresco/RepositoryStartStopTest.java b/src/test/java/org/alfresco/RepositoryStartStopTest.java index fa6efa469f..641573ab76 100644 --- a/src/test/java/org/alfresco/RepositoryStartStopTest.java +++ b/src/test/java/org/alfresco/RepositoryStartStopTest.java @@ -164,8 +164,7 @@ public class RepositoryStartStopTest extends TestCase * a context twice without error, using it * when running. */ - // test ignored from 24 Oct 2018 - public void ignoredTestOpenCloseOpenCloseFull() throws Exception + public void testOpenCloseOpenCloseFull() throws Exception { assertNoCachedApplicationContext(); @@ -187,13 +186,35 @@ public class RepositoryStartStopTest extends TestCase ctx = getFullContext(); assertEquals(ctx, ctx2); - // Refresh it, shouldn't break anything - ((AbstractApplicationContext)ctx).refresh(); - // And finally close it ApplicationContextHelper.closeApplicationContext(); assertNoCachedApplicationContext(); } + + /** + * + * Enable test after this issue is resolved: https://issues.alfresco.com/jira/browse/REPO-4176 + * @throws Exception + */ + public void ignoreTestFullContextRefresh() throws Exception + { + + assertNoCachedApplicationContext(); + + // Open it, and use it + ApplicationContext ctx = getFullContext(); + assertNotNull(ctx); + doTestBasicWriteOperations(ctx); + + // Refresh it, shouldn't break anything + ((AbstractApplicationContext)ctx).refresh(); + assertNotNull(ctx); + doTestBasicWriteOperations(ctx); + + // And finally close it + ApplicationContextHelper.closeApplicationContext(); + assertNoCachedApplicationContext(); + } /** * Tests that we can open a context, use it,