Merged HEAD-BUG-FIX (4.3/Cloud) to HEAD (4.3/Cloud)

58390: Added more tests to ownJVMCategory


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@61973 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Alan Davis
2014-02-11 23:22:57 +00:00
parent bab2d3985a
commit 893c902a2d
92 changed files with 278 additions and 3 deletions

View File

@@ -28,8 +28,10 @@ import junit.framework.TestCase;
import org.alfresco.repo.content.filestore.FileContentReader;
import org.alfresco.service.cmr.repository.ContentReader;
import org.alfresco.service.cmr.repository.MimetypeService;
import org.alfresco.test_category.OwnJVMTestsCategory;
import org.alfresco.util.DataModelTestApplicationContextHelper;
import org.apache.poi.util.IOUtils;
import org.junit.experimental.categories.Category;
import org.springframework.context.ApplicationContext;
/**
@@ -38,6 +40,7 @@ import org.springframework.context.ApplicationContext;
* @see org.alfresco.repo.content.MimetypeMap
* @see org.alfresco.repo.content.MimetypeMapTest
*/
@Category(OwnJVMTestsCategory.class)
public class MimetypeMapContentTest extends TestCase
{
private static ApplicationContext ctx = DataModelTestApplicationContextHelper.getApplicationContext();

View File

@@ -51,10 +51,12 @@ import org.alfresco.service.cmr.repository.StoreRef;
import org.alfresco.service.namespace.NamespaceService;
import org.alfresco.service.namespace.QName;
import org.alfresco.service.transaction.TransactionService;
import org.alfresco.test_category.OwnJVMTestsCategory;
import org.alfresco.util.ApplicationContextHelper;
import org.alfresco.util.GUID;
import org.alfresco.util.PropertyMap;
import org.alfresco.util.TempFileProvider;
import org.junit.experimental.categories.Category;
import org.springframework.context.ApplicationContext;
/**
@@ -62,6 +64,7 @@ import org.springframework.context.ApplicationContext;
*
* @author Derek Hulley
*/
@Category(OwnJVMTestsCategory.class)
public class RoutingContentServiceTest extends TestCase
{
private static ApplicationContext ctx = ApplicationContextHelper.getApplicationContext();

View File

@@ -30,8 +30,10 @@ import org.alfresco.repo.content.filestore.FileContentStore;
import org.alfresco.service.cmr.repository.ContentIOException;
import org.alfresco.service.cmr.repository.ContentReader;
import org.alfresco.service.cmr.repository.ContentWriter;
import org.alfresco.test_category.OwnJVMTestsCategory;
import org.alfresco.util.Pair;
import org.alfresco.util.TempFileProvider;
import org.junit.experimental.categories.Category;
/**
* Ensures that the routing of URLs based on context is working. A combination
@@ -43,6 +45,7 @@ import org.alfresco.util.TempFileProvider;
*
* @author Derek Hulley
*/
@Category(OwnJVMTestsCategory.class)
public class RoutingContentStoreTest extends AbstractWritableContentStoreTest
{
private ContentStore storeA;

View File

@@ -50,8 +50,10 @@ import org.alfresco.service.cmr.repository.NodeService;
import org.alfresco.service.cmr.repository.StoreRef;
import org.alfresco.service.namespace.QName;
import org.alfresco.service.transaction.TransactionService;
import org.alfresco.test_category.OwnJVMTestsCategory;
import org.alfresco.util.ApplicationContextHelper;
import org.alfresco.util.GUID;
import org.junit.experimental.categories.Category;
import org.springframework.context.ApplicationContext;
/**
@@ -59,6 +61,7 @@ import org.springframework.context.ApplicationContext;
*
* @author Derek Hulley
*/
@Category(OwnJVMTestsCategory.class)
public class ContentStoreCleanerTest extends TestCase
{
private static ApplicationContext ctx = ApplicationContextHelper.getApplicationContext();

View File

@@ -29,7 +29,9 @@ import org.alfresco.repo.content.ContentLimitProvider.SimpleFixedLimitProvider;
import org.alfresco.repo.content.ContentLimitViolationException;
import org.alfresco.repo.content.ContentStore;
import org.alfresco.service.cmr.repository.ContentWriter;
import org.alfresco.test_category.OwnJVMTestsCategory;
import org.alfresco.util.TempFileProvider;
import org.junit.experimental.categories.Category;
/**
* Tests read and write functionality for the store.
@@ -38,6 +40,7 @@ import org.alfresco.util.TempFileProvider;
*
* @author Derek Hulley
*/
@Category(OwnJVMTestsCategory.class)
public class FileContentStoreTest extends AbstractWritableContentStoreTest
{
private FileContentStore store;

View File

@@ -22,7 +22,9 @@ import java.io.File;
import org.alfresco.repo.content.AbstractWritableContentStoreTest;
import org.alfresco.repo.content.ContentStore;
import org.alfresco.test_category.OwnJVMTestsCategory;
import org.alfresco.util.TempFileProvider;
import org.junit.experimental.categories.Category;
/**
* Tests the file-based store when random access is not allowed, i.e. has to be spoofed.
@@ -32,6 +34,7 @@ import org.alfresco.util.TempFileProvider;
* @since 2.1
* @author Derek Hulley
*/
@Category(OwnJVMTestsCategory.class)
public class NoRandomAccessFileContentStoreTest extends AbstractWritableContentStoreTest
{
private FileContentStore store;

View File

@@ -23,7 +23,9 @@ import java.io.File;
import org.alfresco.repo.content.AbstractReadOnlyContentStoreTest;
import org.alfresco.repo.content.AbstractWritableContentStoreTest;
import org.alfresco.repo.content.ContentStore;
import org.alfresco.test_category.OwnJVMTestsCategory;
import org.alfresco.util.TempFileProvider;
import org.junit.experimental.categories.Category;
/**
* Tests the file-based store when in read-only mode.
@@ -33,6 +35,7 @@ import org.alfresco.util.TempFileProvider;
* @since 2.1
* @author Derek Hulley
*/
@Category(OwnJVMTestsCategory.class)
public class ReadOnlyFileContentStoreTest extends AbstractReadOnlyContentStoreTest
{
private FileContentStore store;

View File

@@ -35,8 +35,10 @@ import org.alfresco.repo.content.filestore.FileContentStore;
import org.alfresco.service.cmr.repository.ContentIOException;
import org.alfresco.service.cmr.repository.ContentReader;
import org.alfresco.service.cmr.repository.ContentWriter;
import org.alfresco.test_category.OwnJVMTestsCategory;
import org.alfresco.util.GUID;
import org.alfresco.util.TempFileProvider;
import org.junit.experimental.categories.Category;
/**
* Tests read and write functionality for the replicating store.
@@ -48,6 +50,7 @@ import org.alfresco.util.TempFileProvider;
*
* @author Derek Hulley
*/
@Category(OwnJVMTestsCategory.class)
public class ReplicatingContentStoreTest extends AbstractWritableContentStoreTest
{
private static final String SOME_CONTENT = "The No. 1 Ladies' Detective Agency";