mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Attempted fix for file delete discrepancies between Windows and Linux
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2181 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -435,7 +435,6 @@ public abstract class AbstractContentReadWriteTest extends TestCase
|
|||||||
|
|
||||||
// with the stream open, attempt to delete the content
|
// with the stream open, attempt to delete the content
|
||||||
boolean deleted = store.delete(contentUrl);
|
boolean deleted = store.delete(contentUrl);
|
||||||
assertFalse("Should not be able to delete content with open write stream", deleted);
|
|
||||||
|
|
||||||
// close the stream
|
// close the stream
|
||||||
os.close();
|
os.close();
|
||||||
@@ -443,6 +442,9 @@ public abstract class AbstractContentReadWriteTest extends TestCase
|
|||||||
// get a reader
|
// get a reader
|
||||||
ContentReader reader = store.getReader(contentUrl);
|
ContentReader reader = store.getReader(contentUrl);
|
||||||
assertNotNull(reader);
|
assertNotNull(reader);
|
||||||
|
// make sure that the underlying content still exists (the delete occured during a write)
|
||||||
|
assertTrue("Underlying content was deleted during a write", reader.exists());
|
||||||
|
|
||||||
ContentReader readerCheck = writer.getReader();
|
ContentReader readerCheck = writer.getReader();
|
||||||
assertNotNull(readerCheck);
|
assertNotNull(readerCheck);
|
||||||
assertEquals("Store and write provided readers onto different URLs",
|
assertEquals("Store and write provided readers onto different URLs",
|
||||||
|
Reference in New Issue
Block a user