mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
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:
@@ -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
|
||||
|
@@ -22,7 +22,6 @@ import junit.framework.Test;
|
||||
import junit.framework.TestSuite;
|
||||
|
||||
import org.alfresco.repo.content.cleanup.ContentStoreCleanerTest;
|
||||
import org.alfresco.repo.content.encoding.CharsetFinderTest;
|
||||
import org.alfresco.repo.content.filestore.FileContentStoreTest;
|
||||
import org.alfresco.repo.content.filestore.NoRandomAccessFileContentStoreTest;
|
||||
import org.alfresco.repo.content.filestore.ReadOnlyFileContentStoreTest;
|
||||
@@ -59,6 +58,7 @@ public class ContentFullContextTestSuite extends TestSuite
|
||||
|
||||
try
|
||||
{
|
||||
@SuppressWarnings("rawtypes")
|
||||
Class clazz = Class.forName("org.alfresco.repo.content.routing.StoreSelectorAspectContentStoreTest");
|
||||
suite.addTestSuite(clazz);
|
||||
}
|
||||
|
@@ -18,6 +18,10 @@
|
||||
*/
|
||||
package org.alfresco.repo.content;
|
||||
|
||||
import junit.framework.JUnit4TestAdapter;
|
||||
import junit.framework.Test;
|
||||
import junit.framework.TestSuite;
|
||||
|
||||
import org.alfresco.repo.content.metadata.DWGMetadataExtracterTest;
|
||||
import org.alfresco.repo.content.metadata.HtmlMetadataExtracterTest;
|
||||
import org.alfresco.repo.content.metadata.MP3MetadataExtracterTest;
|
||||
@@ -53,12 +57,6 @@ import org.alfresco.service.cmr.repository.TransformationOptionPairTest;
|
||||
import org.alfresco.util.ApplicationContextHelper;
|
||||
import org.springframework.context.ApplicationContext;
|
||||
|
||||
import com.google.gdata.data.acl.AclRole;
|
||||
|
||||
import junit.framework.JUnit4TestAdapter;
|
||||
import junit.framework.Test;
|
||||
import junit.framework.TestSuite;
|
||||
|
||||
/**
|
||||
* Metadata Extractor and Transform test suite
|
||||
*
|
||||
|
Reference in New Issue
Block a user