mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
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:
@@ -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
|
||||
|
Reference in New Issue
Block a user