mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
Further fix for ACE-2932 to allow the UI to post pseudo-qname strings like "Site" or "Tag".
Without this fix, strings with no leading "{}" are rejected as not being recognised as QNames. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@86035 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -74,7 +74,14 @@ public class FacetQNameUtilsTest
|
||||
FacetQNameUtils.createQName("{http://www.alfresco.org/model/foo/1.0}localName", resolver));
|
||||
}
|
||||
|
||||
// Note: it doesn't really make sense to have a short-form qname with no prefix.
|
||||
@Test public void canCreateFromShortFormWithNoPrefix() throws Exception
|
||||
{
|
||||
// The sensibleness of this from an Alfresco perspective is questionable.
|
||||
// But this is what we must do to support 'QName' strings like "Site" or "Tag" in the REST API.
|
||||
assertEquals(QName.createQName(null, "localName"),
|
||||
FacetQNameUtils.createQName("localName", resolver));
|
||||
}
|
||||
|
||||
@Test public void canCreateFromLongFormWithNoPrefix() throws Exception
|
||||
{
|
||||
assertEquals(QName.createQName(null, "localName"),
|
||||
|
Reference in New Issue
Block a user