mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
APPS-361
[AGS/S3]Moving records between buckets in S3 (also possible moving records between stores-filecontenstore) fails --revert
This commit is contained in:
@@ -132,28 +132,4 @@ public class RecordAspectUnitTest
|
||||
verify(mockExtendedSecurityService, times(1)).remove(COPY_REF);
|
||||
verify(mockContentBinDuplicationUtility, times(1)).duplicate(COPY_REF);
|
||||
}
|
||||
|
||||
/**
|
||||
* Check that no exception is thrown when moving record between stores
|
||||
*/
|
||||
@Test
|
||||
public void testOnUpdatePropertiesContentMovedToAnotherStore()
|
||||
{
|
||||
Map<QName, Serializable> before = ImmutableMap.of(PROP_CONTENT, new ContentData("dummyContentUrl1", "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), PROP_STORE_NAME, "store2");
|
||||
recordAspect.onUpdateProperties(NODE_REF, before, after);
|
||||
}
|
||||
|
||||
/**
|
||||
* 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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user