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

80486: Merged WAT1 (5.0/Cloud) to HEAD-BUG-FIX (5.0/Cloud)
      73436: Added tests for the SolrFacetHelper class and the newly added method in the patch service.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@82784 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Will Abson
2014-09-03 15:39:56 +00:00
parent 3b7b9198fa
commit 30900f9054
2 changed files with 368 additions and 1 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2005-2010 Alfresco Software Limited.
* Copyright (C) 2005-2014 Alfresco Software Limited.
*
* This file is part of Alfresco
*
@@ -191,6 +191,20 @@ public class PatchTest extends TestCase
assertTrue("Sample 03 not in list of applied patches", found03);
}
public void testApplyOutstandingPatch() throws Exception
{
Patch testPatch = (Patch)ctx.getBean("patch.sample.02");
// apply outstanding patches
boolean success = patchService.applyOutstandingPatch(testPatch);
assertTrue(success);
// get the applied patch
AppliedPatch appliedPatch = patchService.getPatch(testPatch.getId());
assertNotNull("patch.sample.02 patch hasn't been applied", appliedPatch);
// check that the patch application was recorded
assertTrue("Patch info didn't indicate success: " + appliedPatch, appliedPatch.getSucceeded());
}
public void testGetPatchesByDate() throws Exception
{
// ensure that there are some applied patches