mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
APPS-391: [AGS/WORM] Wrong error message received when updating the content store property for a locked record
This commit is contained in:
@@ -133,19 +133,6 @@ public class RecordAspectUnitTest
|
||||
verify(mockContentBinDuplicationUtility, times(1)).duplicate(COPY_REF);
|
||||
}
|
||||
|
||||
/**
|
||||
* Check that an IntegrityException is thrown when content is changed
|
||||
*/
|
||||
@Test (expected = IntegrityException.class)
|
||||
public void testOnUpdatePropertiesContentChanged()
|
||||
{
|
||||
Map<QName, Serializable> before = ImmutableMap.of(PROP_CONTENT, new ContentData("dummyContentUrl", "text/plain",
|
||||
0L, "UTF-8", Locale.UK));
|
||||
Map<QName, Serializable> after = ImmutableMap.of(PROP_CONTENT, new ContentData("dummyContentUrl2", "text" +
|
||||
"/plain", 0L, "UTF-8", Locale.UK));
|
||||
recordAspect.onUpdateProperties(NODE_REF, before, after);
|
||||
}
|
||||
|
||||
/**
|
||||
* Check that no exception is thrown when moving record between stores
|
||||
*/
|
||||
|
Reference in New Issue
Block a user