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

58397: Added more tests to ownJVMCategory


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@61977 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Alan Davis
2014-02-11 23:26:07 +00:00
parent 7f8a7f9560
commit 1253d2d40e
12 changed files with 36 additions and 0 deletions

View File

@@ -25,14 +25,17 @@ import org.alfresco.service.cmr.repository.NodeRef;
import org.alfresco.service.cmr.repository.NodeService; import org.alfresco.service.cmr.repository.NodeService;
import org.alfresco.service.cmr.repository.StoreRef; import org.alfresco.service.cmr.repository.StoreRef;
import org.alfresco.service.namespace.QName; import org.alfresco.service.namespace.QName;
import org.alfresco.test_category.OwnJVMTestsCategory;
import org.alfresco.util.BaseSpringTest; import org.alfresco.util.BaseSpringTest;
import org.alfresco.util.GUID; import org.alfresco.util.GUID;
import org.junit.experimental.categories.Category;
/** /**
* Remove features action execution test * Remove features action execution test
* *
* @author Roy Wetherall * @author Roy Wetherall
*/ */
@Category(OwnJVMTestsCategory.class)
public class RemoveFeaturesActionExecuterTest extends BaseSpringTest public class RemoveFeaturesActionExecuterTest extends BaseSpringTest
{ {
/** /**

View File

@@ -25,14 +25,17 @@ import org.alfresco.service.cmr.repository.NodeRef;
import org.alfresco.service.cmr.repository.NodeService; import org.alfresco.service.cmr.repository.NodeService;
import org.alfresco.service.cmr.repository.StoreRef; import org.alfresco.service.cmr.repository.StoreRef;
import org.alfresco.service.namespace.QName; import org.alfresco.service.namespace.QName;
import org.alfresco.test_category.OwnJVMTestsCategory;
import org.alfresco.util.BaseSpringTest; import org.alfresco.util.BaseSpringTest;
import org.alfresco.util.GUID; import org.alfresco.util.GUID;
import org.junit.experimental.categories.Category;
/** /**
* Is sub class evaluator test * Is sub class evaluator test
* *
* @author Roy Wetherall * @author Roy Wetherall
*/ */
@Category(OwnJVMTestsCategory.class)
public class SetPropertyValueActionExecuterTest extends BaseSpringTest public class SetPropertyValueActionExecuterTest extends BaseSpringTest
{ {
private NodeService nodeService; private NodeService nodeService;

View File

@@ -22,14 +22,17 @@ import org.alfresco.model.ContentModel;
import org.alfresco.repo.action.ActionImpl; import org.alfresco.repo.action.ActionImpl;
import org.alfresco.service.cmr.repository.NodeRef; import org.alfresco.service.cmr.repository.NodeRef;
import org.alfresco.service.namespace.QName; import org.alfresco.service.namespace.QName;
import org.alfresco.test_category.OwnJVMTestsCategory;
import org.alfresco.util.BaseAlfrescoSpringTest; import org.alfresco.util.BaseAlfrescoSpringTest;
import org.alfresco.util.GUID; import org.alfresco.util.GUID;
import org.junit.experimental.categories.Category;
/** /**
* Specialise type action execution test * Specialise type action execution test
* *
* @author Roy Wetherall * @author Roy Wetherall
*/ */
@Category(OwnJVMTestsCategory.class)
public class SpecialiseTypeActionExecuterTest extends BaseAlfrescoSpringTest public class SpecialiseTypeActionExecuterTest extends BaseAlfrescoSpringTest
{ {
/** /**

View File

@@ -28,14 +28,17 @@ import org.alfresco.repo.action.ActionImpl;
import org.alfresco.service.cmr.model.FileFolderService; import org.alfresco.service.cmr.model.FileFolderService;
import org.alfresco.service.cmr.repository.NodeRef; import org.alfresco.service.cmr.repository.NodeRef;
import org.alfresco.service.namespace.QName; import org.alfresco.service.namespace.QName;
import org.alfresco.test_category.OwnJVMTestsCategory;
import org.alfresco.util.BaseAlfrescoSpringTest; import org.alfresco.util.BaseAlfrescoSpringTest;
import org.alfresco.util.GUID; import org.alfresco.util.GUID;
import org.junit.experimental.categories.Category;
/** /**
* Transition simple workflow action executer unit test * Transition simple workflow action executer unit test
* *
* @author Roy Wetherall * @author Roy Wetherall
*/ */
@Category(OwnJVMTestsCategory.class)
public class TransitionSimpleWorkflowActionExecuterTest extends BaseAlfrescoSpringTest public class TransitionSimpleWorkflowActionExecuterTest extends BaseAlfrescoSpringTest
{ {
private FileFolderService fileFolderService; private FileFolderService fileFolderService;

View File

@@ -33,8 +33,10 @@ import org.alfresco.repo.transaction.RetryingTransactionHelper.RetryingTransacti
import org.alfresco.repo.transaction.TransactionListenerAdapter; import org.alfresco.repo.transaction.TransactionListenerAdapter;
import org.alfresco.service.ServiceRegistry; import org.alfresco.service.ServiceRegistry;
import org.alfresco.service.transaction.TransactionService; import org.alfresco.service.transaction.TransactionService;
import org.alfresco.test_category.OwnJVMTestsCategory;
import org.alfresco.util.ApplicationContextHelper; import org.alfresco.util.ApplicationContextHelper;
import org.apache.commons.lang.mutable.MutableLong; import org.apache.commons.lang.mutable.MutableLong;
import org.junit.experimental.categories.Category;
import org.springframework.context.ApplicationContext; import org.springframework.context.ApplicationContext;
/** /**
@@ -42,6 +44,7 @@ import org.springframework.context.ApplicationContext;
* *
* @author Derek Hulley * @author Derek Hulley
*/ */
@Category(OwnJVMTestsCategory.class)
public class CacheTest extends TestCase public class CacheTest extends TestCase
{ {
private static ApplicationContext ctx = ApplicationContextHelper.getApplicationContext( private static ApplicationContext ctx = ApplicationContextHelper.getApplicationContext(

View File

@@ -48,6 +48,7 @@ import org.alfresco.service.cmr.repository.NodeService;
import org.alfresco.service.cmr.security.PermissionService; import org.alfresco.service.cmr.security.PermissionService;
import org.alfresco.service.namespace.QName; import org.alfresco.service.namespace.QName;
import org.alfresco.service.namespace.RegexQNamePattern; import org.alfresco.service.namespace.RegexQNamePattern;
import org.alfresco.test_category.OwnJVMTestsCategory;
import org.alfresco.util.test.junitrules.AlfrescoPerson; import org.alfresco.util.test.junitrules.AlfrescoPerson;
import org.alfresco.util.test.junitrules.ApplicationContextInit; import org.alfresco.util.test.junitrules.ApplicationContextInit;
import org.alfresco.util.test.junitrules.TemporaryNodes; import org.alfresco.util.test.junitrules.TemporaryNodes;
@@ -59,6 +60,7 @@ import org.junit.BeforeClass;
import org.junit.ClassRule; import org.junit.ClassRule;
import org.junit.Rule; import org.junit.Rule;
import org.junit.Test; import org.junit.Test;
import org.junit.experimental.categories.Category;
import org.junit.rules.RuleChain; import org.junit.rules.RuleChain;
/** /**
@@ -66,6 +68,7 @@ import org.junit.rules.RuleChain;
* *
* @author Alex Miller * @author Alex Miller
*/ */
@Category(OwnJVMTestsCategory.class)
public class DownloadServiceIntegrationTest public class DownloadServiceIntegrationTest
{ {
public static final long MAX_TIME = 5000; public static final long MAX_TIME = 5000;

View File

@@ -55,11 +55,13 @@ import org.alfresco.service.cmr.repository.NodeRef;
import org.alfresco.service.cmr.repository.NodeService; import org.alfresco.service.cmr.repository.NodeService;
import org.alfresco.service.namespace.NamespaceService; import org.alfresco.service.namespace.NamespaceService;
import org.alfresco.service.namespace.QName; import org.alfresco.service.namespace.QName;
import org.alfresco.test_category.OwnJVMTestsCategory;
import org.alfresco.util.ApplicationContextHelper; import org.alfresco.util.ApplicationContextHelper;
import org.junit.After; import org.junit.After;
import org.junit.Before; import org.junit.Before;
import org.junit.BeforeClass; import org.junit.BeforeClass;
import org.junit.Test; import org.junit.Test;
import org.junit.experimental.categories.Category;
import org.springframework.context.ApplicationContext; import org.springframework.context.ApplicationContext;
/** /**
@@ -68,6 +70,7 @@ import org.springframework.context.ApplicationContext;
* @author Neil Mc Erlean * @author Neil Mc Erlean
* @since 4.0 * @since 4.0
*/ */
@Category(OwnJVMTestsCategory.class)
public class ActionFormProcessorTest public class ActionFormProcessorTest
{ {
private static final ApplicationContext testContext = ApplicationContextHelper.getApplicationContext(); private static final ApplicationContext testContext = ApplicationContextHelper.getApplicationContext();

View File

@@ -80,8 +80,10 @@ import org.alfresco.service.cmr.repository.TransformationOptions;
import org.alfresco.service.namespace.NamespaceService; import org.alfresco.service.namespace.NamespaceService;
import org.alfresco.service.namespace.QName; import org.alfresco.service.namespace.QName;
import org.alfresco.service.namespace.RegexQNamePattern; import org.alfresco.service.namespace.RegexQNamePattern;
import org.alfresco.test_category.OwnJVMTestsCategory;
import org.alfresco.util.BaseAlfrescoSpringTest; import org.alfresco.util.BaseAlfrescoSpringTest;
import org.alfresco.util.Pair; import org.alfresco.util.Pair;
import org.junit.experimental.categories.Category;
import org.springframework.context.ConfigurableApplicationContext; import org.springframework.context.ConfigurableApplicationContext;
/** /**
@@ -90,6 +92,7 @@ import org.springframework.context.ConfigurableApplicationContext;
* @since 3.3 * @since 3.3
*/ */
@SuppressWarnings("deprecation") @SuppressWarnings("deprecation")
@Category(OwnJVMTestsCategory.class)
public class RenditionServiceIntegrationTest extends BaseAlfrescoSpringTest public class RenditionServiceIntegrationTest extends BaseAlfrescoSpringTest
{ {
private static final String WHITE = "ffffff"; private static final String WHITE = "ffffff";

View File

@@ -36,10 +36,12 @@ import org.alfresco.service.cmr.repository.NodeService;
import org.alfresco.service.cmr.repository.StoreRef; import org.alfresco.service.cmr.repository.StoreRef;
import org.alfresco.service.cmr.search.ResultSet; import org.alfresco.service.cmr.search.ResultSet;
import org.alfresco.service.cmr.search.SearchService; import org.alfresco.service.cmr.search.SearchService;
import org.alfresco.test_category.OwnJVMTestsCategory;
import org.alfresco.util.BaseAlfrescoSpringTest; import org.alfresco.util.BaseAlfrescoSpringTest;
import org.alfresco.util.GUID; import org.alfresco.util.GUID;
import org.apache.commons.logging.Log; import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory; import org.apache.commons.logging.LogFactory;
import org.junit.experimental.categories.Category;
import org.w3c.dom.Document; import org.w3c.dom.Document;
import org.w3c.dom.NodeList; import org.w3c.dom.NodeList;
@@ -47,6 +49,7 @@ import org.w3c.dom.NodeList;
* @author Brian * @author Brian
* *
*/ */
@Category(OwnJVMTestsCategory.class)
public class XSLTFunctionsTest extends BaseAlfrescoSpringTest public class XSLTFunctionsTest extends BaseAlfrescoSpringTest
{ {
private final static Log log = LogFactory.getLog(XSLTFunctionsTest.class); private final static Log log = LogFactory.getLog(XSLTFunctionsTest.class);

View File

@@ -38,16 +38,19 @@ import org.alfresco.service.cmr.repository.NodeService;
import org.alfresco.service.cmr.repository.TemplateProcessor; import org.alfresco.service.cmr.repository.TemplateProcessor;
import org.alfresco.service.cmr.repository.TemplateService; import org.alfresco.service.cmr.repository.TemplateService;
import org.alfresco.service.namespace.QName; import org.alfresco.service.namespace.QName;
import org.alfresco.test_category.OwnJVMTestsCategory;
import org.alfresco.util.BaseAlfrescoSpringTest; import org.alfresco.util.BaseAlfrescoSpringTest;
import org.alfresco.util.GUID; import org.alfresco.util.GUID;
import org.apache.commons.logging.Log; import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory; import org.apache.commons.logging.LogFactory;
import org.custommonkey.xmlunit.Diff; import org.custommonkey.xmlunit.Diff;
import org.junit.experimental.categories.Category;
/** /**
* @author Brian * @author Brian
* *
*/ */
@Category(OwnJVMTestsCategory.class)
public class XSLTRenderingEngineTest extends BaseAlfrescoSpringTest public class XSLTRenderingEngineTest extends BaseAlfrescoSpringTest
{ {
private final static Log log = LogFactory.getLog(XSLTRenderingEngineTest.class); private final static Log log = LogFactory.getLog(XSLTRenderingEngineTest.class);

View File

@@ -73,9 +73,11 @@ import org.alfresco.service.cmr.transfer.TransferTarget;
import org.alfresco.service.namespace.NamespaceService; import org.alfresco.service.namespace.NamespaceService;
import org.alfresco.service.namespace.QName; import org.alfresco.service.namespace.QName;
import org.alfresco.service.transaction.TransactionService; import org.alfresco.service.transaction.TransactionService;
import org.alfresco.test_category.OwnJVMTestsCategory;
import org.alfresco.util.ApplicationContextHelper; import org.alfresco.util.ApplicationContextHelper;
import org.alfresco.util.GUID; import org.alfresco.util.GUID;
import org.alfresco.util.Pair; import org.alfresco.util.Pair;
import org.junit.experimental.categories.Category;
import org.springframework.context.ConfigurableApplicationContext; import org.springframework.context.ConfigurableApplicationContext;
/** /**
@@ -84,6 +86,7 @@ import org.springframework.context.ConfigurableApplicationContext;
* to run async actions and know how they'll behave * to run async actions and know how they'll behave
* @author Nick Burch * @author Nick Burch
*/ */
@Category(OwnJVMTestsCategory.class)
public class ReplicationServiceIntegrationTest extends TestCase public class ReplicationServiceIntegrationTest extends TestCase
{ {
private static ConfigurableApplicationContext ctx = private static ConfigurableApplicationContext ctx =

View File

@@ -42,15 +42,18 @@ import org.alfresco.service.cmr.version.Version;
import org.alfresco.service.namespace.NamespaceService; import org.alfresco.service.namespace.NamespaceService;
import org.alfresco.service.namespace.QName; import org.alfresco.service.namespace.QName;
import org.alfresco.service.namespace.RegexQNamePattern; import org.alfresco.service.namespace.RegexQNamePattern;
import org.alfresco.test_category.OwnJVMTestsCategory;
import org.alfresco.util.GUID; import org.alfresco.util.GUID;
import org.alfresco.util.TestWithUserUtils; import org.alfresco.util.TestWithUserUtils;
import org.alfresco.util.debug.NodeStoreInspector; import org.alfresco.util.debug.NodeStoreInspector;
import org.apache.commons.logging.Log; import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory; import org.apache.commons.logging.LogFactory;
import org.junit.experimental.categories.Category;
/** /**
* @author Roy Wetherall * @author Roy Wetherall
*/ */
@Category(OwnJVMTestsCategory.class)
public class NodeServiceImplTest extends BaseVersionStoreTest public class NodeServiceImplTest extends BaseVersionStoreTest
{ {
private static Log logger = LogFactory.getLog(NodeServiceImplTest.class); private static Log logger = LogFactory.getLog(NodeServiceImplTest.class);