mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
ACE-3083: Fixed facets reordering/retrieving when a default facet is removed from the config file, but it has already been persisted.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@87764 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -163,17 +163,23 @@ public class SolrFacetServiceImplTest
|
||||
});
|
||||
}
|
||||
|
||||
@Test(expected=UnrecognisedFacetId.class)
|
||||
@Test
|
||||
public void reorderUnrecognisedFacetIdsShouldFail() throws Exception
|
||||
{
|
||||
TRANSACTION_HELPER.doInTransaction(new RetryingTransactionCallback<Void>()
|
||||
{
|
||||
@Override public Void execute() throws Throwable
|
||||
{
|
||||
final List<String> facetIds = getExistingFacetIds();
|
||||
final List<String> existingFacetIds = getExistingFacetIds();
|
||||
|
||||
final List<String> facetIds = new ArrayList<>(existingFacetIds);
|
||||
facetIds.add("unrecognisedID");
|
||||
|
||||
|
||||
SOLR_FACET_SERVICE.reorderFacets(facetIds);
|
||||
|
||||
final List<String> newfacetIds = getExistingFacetIds();
|
||||
|
||||
assertEquals(existingFacetIds, newfacetIds);
|
||||
return null;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user