ALF-16604: Widended before and after time around content modification

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@43308 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Derek Hulley
2012-11-01 13:27:03 +00:00
parent 03e0c551d1
commit 7c67a013ee
3 changed files with 8 additions and 8 deletions

View File

@@ -194,7 +194,7 @@ public abstract class AbstractWritableContentStoreTest extends AbstractReadOnlyC
/**
* Checks that the various methods of obtaining a reader are supported.
*/
public void testGetReader() throws Exception
public synchronized void testGetReader() throws Exception
{
ContentStore store = getStore();
ContentWriter writer = store.getWriter(ContentStore.NEW_CONTENT_CONTEXT);
@@ -212,10 +212,12 @@ public abstract class AbstractWritableContentStoreTest extends AbstractReadOnlyC
// write some content
long before = System.currentTimeMillis();
this.wait(1000L);
writer.setMimetype("text/plain");
writer.setEncoding("UTF-8");
writer.setLocale(Locale.CHINESE);
writer.putContent(content);
this.wait(1000L);
long after = System.currentTimeMillis();
// get a reader from the store