mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Merged HEAD-BUG-FIX (4.3/Cloud) to HEAD (4.3/Cloud)
58807: Categorised some more tests, less experimentation git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@62037 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
2
pom.xml
2
pom.xml
@@ -882,7 +882,6 @@
|
|||||||
<goals>
|
<goals>
|
||||||
<goal>test</goal>
|
<goal>test</goal>
|
||||||
</goals>
|
</goals>
|
||||||
<phase>process-test-classes</phase>
|
|
||||||
<configuration>
|
<configuration>
|
||||||
<groups>org.alfresco.test_category.BaseSpringTestsCategory</groups>
|
<groups>org.alfresco.test_category.BaseSpringTestsCategory</groups>
|
||||||
<testFailureIgnore>true</testFailureIgnore>
|
<testFailureIgnore>true</testFailureIgnore>
|
||||||
@@ -894,7 +893,6 @@
|
|||||||
<goals>
|
<goals>
|
||||||
<goal>test</goal>
|
<goal>test</goal>
|
||||||
</goals>
|
</goals>
|
||||||
<phase>process-test-classes</phase>
|
|
||||||
<configuration>
|
<configuration>
|
||||||
<!-- <reuseForks>false</reuseForks> -->
|
<!-- <reuseForks>false</reuseForks> -->
|
||||||
<groups>org.alfresco.test_category.OwnJVMTestsCategory</groups>
|
<groups>org.alfresco.test_category.OwnJVMTestsCategory</groups>
|
||||||
|
@@ -24,11 +24,11 @@ import javax.jcr.Session;
|
|||||||
import javax.jcr.SimpleCredentials;
|
import javax.jcr.SimpleCredentials;
|
||||||
|
|
||||||
import org.alfresco.jcr.test.BaseJCRTest;
|
import org.alfresco.jcr.test.BaseJCRTest;
|
||||||
import org.alfresco.test_category.OwnJVMTestsCategory;
|
import org.alfresco.test_category.LegacyCategory;
|
||||||
import org.junit.experimental.categories.Category;
|
import org.junit.experimental.categories.Category;
|
||||||
import org.springframework.core.io.ClassPathResource;
|
import org.springframework.core.io.ClassPathResource;
|
||||||
|
|
||||||
@Category(OwnJVMTestsCategory.class)
|
@Category(LegacyCategory.class)
|
||||||
public class ImportTest extends BaseJCRTest
|
public class ImportTest extends BaseJCRTest
|
||||||
{
|
{
|
||||||
protected Session superuserSession;
|
protected Session superuserSession;
|
||||||
|
@@ -37,6 +37,8 @@ import org.alfresco.service.cmr.repository.ContentData;
|
|||||||
import org.alfresco.service.cmr.repository.NodeRef;
|
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.version.VersionService;
|
import org.alfresco.service.cmr.version.VersionService;
|
||||||
|
import org.alfresco.test_category.LegacyCategory;
|
||||||
|
import org.junit.experimental.categories.Category;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -44,6 +46,7 @@ import org.alfresco.service.cmr.version.VersionService;
|
|||||||
*
|
*
|
||||||
* @author janv
|
* @author janv
|
||||||
*/
|
*/
|
||||||
|
@Category(LegacyCategory.class)
|
||||||
public class ItemTest extends BaseJCRTest
|
public class ItemTest extends BaseJCRTest
|
||||||
{
|
{
|
||||||
protected Session session;
|
protected Session session;
|
||||||
|
@@ -33,7 +33,6 @@ 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.BaseSpringTestsCategory;
|
|
||||||
import org.alfresco.test_category.OwnJVMTestsCategory;
|
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;
|
||||||
@@ -45,7 +44,7 @@ import org.springframework.context.ApplicationContext;
|
|||||||
*
|
*
|
||||||
* @author Derek Hulley
|
* @author Derek Hulley
|
||||||
*/
|
*/
|
||||||
@Category(BaseSpringTestsCategory.class)
|
@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(
|
||||||
|
@@ -34,7 +34,7 @@ import org.alfresco.repo.solr.AclChangeSet;
|
|||||||
import org.alfresco.repo.solr.NodeParameters;
|
import org.alfresco.repo.solr.NodeParameters;
|
||||||
import org.alfresco.repo.solr.Transaction;
|
import org.alfresco.repo.solr.Transaction;
|
||||||
import org.alfresco.service.cmr.repository.StoreRef;
|
import org.alfresco.service.cmr.repository.StoreRef;
|
||||||
import org.alfresco.test_category.BaseSpringTestsCategory;
|
import org.alfresco.test_category.OwnJVMTestsCategory;
|
||||||
import org.alfresco.util.ApplicationContextHelper;
|
import org.alfresco.util.ApplicationContextHelper;
|
||||||
import org.junit.experimental.categories.Category;
|
import org.junit.experimental.categories.Category;
|
||||||
import org.springframework.context.ConfigurableApplicationContext;
|
import org.springframework.context.ConfigurableApplicationContext;
|
||||||
@@ -44,7 +44,7 @@ import org.springframework.context.ConfigurableApplicationContext;
|
|||||||
*
|
*
|
||||||
* @since 4.0
|
* @since 4.0
|
||||||
*/
|
*/
|
||||||
@Category(BaseSpringTestsCategory.class)
|
@Category(OwnJVMTestsCategory.class)
|
||||||
public class SOLRDAOTest extends TestCase
|
public class SOLRDAOTest extends TestCase
|
||||||
{
|
{
|
||||||
private ConfigurableApplicationContext ctx = (ConfigurableApplicationContext) ApplicationContextHelper.getApplicationContext();
|
private ConfigurableApplicationContext ctx = (ConfigurableApplicationContext) ApplicationContextHelper.getApplicationContext();
|
||||||
|
@@ -55,6 +55,7 @@ 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.BaseSpringTestsCategory;
|
||||||
import org.alfresco.test_category.OwnJVMTestsCategory;
|
import org.alfresco.test_category.OwnJVMTestsCategory;
|
||||||
import org.alfresco.util.ApplicationContextHelper;
|
import org.alfresco.util.ApplicationContextHelper;
|
||||||
import org.junit.After;
|
import org.junit.After;
|
||||||
@@ -70,7 +71,7 @@ import org.springframework.context.ApplicationContext;
|
|||||||
* @author Neil Mc Erlean
|
* @author Neil Mc Erlean
|
||||||
* @since 4.0
|
* @since 4.0
|
||||||
*/
|
*/
|
||||||
@Category(OwnJVMTestsCategory.class)
|
@Category(BaseSpringTestsCategory.class)
|
||||||
public class ActionFormProcessorTest
|
public class ActionFormProcessorTest
|
||||||
{
|
{
|
||||||
private static final ApplicationContext testContext = ApplicationContextHelper.getApplicationContext();
|
private static final ApplicationContext testContext = ApplicationContextHelper.getApplicationContext();
|
||||||
|
@@ -27,7 +27,6 @@ import org.alfresco.repo.transaction.RetryingTransactionHelper.RetryingTransacti
|
|||||||
import org.alfresco.service.ServiceRegistry;
|
import org.alfresco.service.ServiceRegistry;
|
||||||
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.BaseSpringTestsCategory;
|
|
||||||
import org.alfresco.test_category.OwnJVMTestsCategory;
|
import org.alfresco.test_category.OwnJVMTestsCategory;
|
||||||
import org.alfresco.util.ApplicationContextHelper;
|
import org.alfresco.util.ApplicationContextHelper;
|
||||||
import org.junit.experimental.categories.Category;
|
import org.junit.experimental.categories.Category;
|
||||||
@@ -44,7 +43,7 @@ import org.springframework.context.ApplicationContext;
|
|||||||
* @since 3.2
|
* @since 3.2
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("unused")
|
@SuppressWarnings("unused")
|
||||||
@Category(BaseSpringTestsCategory.class)
|
@Category(OwnJVMTestsCategory.class)
|
||||||
public class JobLockServiceTest extends TestCase
|
public class JobLockServiceTest extends TestCase
|
||||||
{
|
{
|
||||||
public static final String NAMESPACE = "http://www.alfresco.org/test/JobLockServiceTest";
|
public static final String NAMESPACE = "http://www.alfresco.org/test/JobLockServiceTest";
|
||||||
|
@@ -37,6 +37,7 @@ 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.datatype.DefaultTypeConverter;
|
import org.alfresco.service.cmr.repository.datatype.DefaultTypeConverter;
|
||||||
import org.alfresco.service.namespace.QName;
|
import org.alfresco.service.namespace.QName;
|
||||||
|
import org.alfresco.test_category.BaseSpringTestsCategory;
|
||||||
import org.alfresco.test_category.OwnJVMTestsCategory;
|
import org.alfresco.test_category.OwnJVMTestsCategory;
|
||||||
import org.junit.experimental.categories.Category;
|
import org.junit.experimental.categories.Category;
|
||||||
import org.springframework.extensions.surf.util.I18NUtil;
|
import org.springframework.extensions.surf.util.I18NUtil;
|
||||||
@@ -48,7 +49,7 @@ import org.springframework.extensions.surf.util.I18NUtil;
|
|||||||
*
|
*
|
||||||
* @author Derek Hulley
|
* @author Derek Hulley
|
||||||
*/
|
*/
|
||||||
@Category(OwnJVMTestsCategory.class)
|
@Category(BaseSpringTestsCategory.class)
|
||||||
public class FullNodeServiceTest extends BaseNodeServiceTest
|
public class FullNodeServiceTest extends BaseNodeServiceTest
|
||||||
{
|
{
|
||||||
protected NodeService getNodeService()
|
protected NodeService getNodeService()
|
||||||
|
@@ -81,7 +81,7 @@ 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.service.transaction.TransactionService;
|
import org.alfresco.service.transaction.TransactionService;
|
||||||
import org.alfresco.test_category.OwnJVMTestsCategory;
|
import org.alfresco.test_category.BaseSpringTestsCategory;
|
||||||
import org.alfresco.util.GUID;
|
import org.alfresco.util.GUID;
|
||||||
import org.alfresco.util.Pair;
|
import org.alfresco.util.Pair;
|
||||||
import org.alfresco.util.PropertyMap;
|
import org.alfresco.util.PropertyMap;
|
||||||
@@ -104,7 +104,7 @@ import org.springframework.extensions.surf.util.I18NUtil;
|
|||||||
* @author Derek Hulley
|
* @author Derek Hulley
|
||||||
* @since 4.0
|
* @since 4.0
|
||||||
*/
|
*/
|
||||||
@Category(OwnJVMTestsCategory.class)
|
@Category(BaseSpringTestsCategory.class)
|
||||||
public class NodeServiceTest
|
public class NodeServiceTest
|
||||||
{
|
{
|
||||||
public static final String NAMESPACE = "http://www.alfresco.org/test/BaseNodeServiceTest";
|
public static final String NAMESPACE = "http://www.alfresco.org/test/BaseNodeServiceTest";
|
||||||
|
@@ -33,6 +33,7 @@ import org.alfresco.service.cmr.oauth1.OAuth1CredentialsStoreService;
|
|||||||
import org.alfresco.service.cmr.remotecredentials.OAuth1CredentialsInfo;
|
import org.alfresco.service.cmr.remotecredentials.OAuth1CredentialsInfo;
|
||||||
import org.alfresco.service.cmr.security.MutableAuthenticationService;
|
import org.alfresco.service.cmr.security.MutableAuthenticationService;
|
||||||
import org.alfresco.service.cmr.security.PersonService;
|
import org.alfresco.service.cmr.security.PersonService;
|
||||||
|
import org.alfresco.test_category.BaseSpringTestsCategory;
|
||||||
import org.alfresco.test_category.OwnJVMTestsCategory;
|
import org.alfresco.test_category.OwnJVMTestsCategory;
|
||||||
import org.alfresco.util.ApplicationContextHelper;
|
import org.alfresco.util.ApplicationContextHelper;
|
||||||
import org.alfresco.util.PropertyMap;
|
import org.alfresco.util.PropertyMap;
|
||||||
@@ -45,7 +46,7 @@ import org.junit.Test;
|
|||||||
import org.springframework.context.ApplicationContext;
|
import org.springframework.context.ApplicationContext;
|
||||||
|
|
||||||
@FixMethodOrder(MethodSorters.NAME_ASCENDING)
|
@FixMethodOrder(MethodSorters.NAME_ASCENDING)
|
||||||
@Category(OwnJVMTestsCategory.class)
|
@Category(BaseSpringTestsCategory.class)
|
||||||
public class OAuth1CredentialsStoreServiceTest
|
public class OAuth1CredentialsStoreServiceTest
|
||||||
{
|
{
|
||||||
private static ApplicationContext ctx = ApplicationContextHelper.getApplicationContext();
|
private static ApplicationContext ctx = ApplicationContextHelper.getApplicationContext();
|
||||||
|
@@ -34,6 +34,7 @@ import org.alfresco.service.cmr.oauth2.OAuth2CredentialsStoreService;
|
|||||||
import org.alfresco.service.cmr.remotecredentials.OAuth2CredentialsInfo;
|
import org.alfresco.service.cmr.remotecredentials.OAuth2CredentialsInfo;
|
||||||
import org.alfresco.service.cmr.security.MutableAuthenticationService;
|
import org.alfresco.service.cmr.security.MutableAuthenticationService;
|
||||||
import org.alfresco.service.cmr.security.PersonService;
|
import org.alfresco.service.cmr.security.PersonService;
|
||||||
|
import org.alfresco.test_category.BaseSpringTestsCategory;
|
||||||
import org.alfresco.test_category.OwnJVMTestsCategory;
|
import org.alfresco.test_category.OwnJVMTestsCategory;
|
||||||
import org.alfresco.util.ApplicationContextHelper;
|
import org.alfresco.util.ApplicationContextHelper;
|
||||||
import org.alfresco.util.PropertyMap;
|
import org.alfresco.util.PropertyMap;
|
||||||
@@ -43,7 +44,7 @@ import org.junit.Test;
|
|||||||
import org.junit.experimental.categories.Category;
|
import org.junit.experimental.categories.Category;
|
||||||
import org.springframework.context.ApplicationContext;
|
import org.springframework.context.ApplicationContext;
|
||||||
|
|
||||||
@Category(OwnJVMTestsCategory.class)
|
@Category(BaseSpringTestsCategory.class)
|
||||||
public class OAuth2CredentialsStoreServiceTest
|
public class OAuth2CredentialsStoreServiceTest
|
||||||
{
|
{
|
||||||
private static ApplicationContext ctx = ApplicationContextHelper.getApplicationContext();
|
private static ApplicationContext ctx = ApplicationContextHelper.getApplicationContext();
|
||||||
|
@@ -41,6 +41,7 @@ import org.alfresco.service.cmr.repository.NodeRef;
|
|||||||
import org.alfresco.service.cmr.repository.ScriptLocation;
|
import org.alfresco.service.cmr.repository.ScriptLocation;
|
||||||
import org.alfresco.service.cmr.repository.ScriptService;
|
import org.alfresco.service.cmr.repository.ScriptService;
|
||||||
import org.alfresco.service.cmr.security.PersonService;
|
import org.alfresco.service.cmr.security.PersonService;
|
||||||
|
import org.alfresco.test_category.BaseSpringTestsCategory;
|
||||||
import org.alfresco.test_category.OwnJVMTestsCategory;
|
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;
|
||||||
@@ -64,7 +65,7 @@ import org.junit.rules.RuleChain;
|
|||||||
* @author Roy Wetherall
|
* @author Roy Wetherall
|
||||||
* @author Neil Mc Erlean (refactoring to JUnit Rules and enabling disabled tests)
|
* @author Neil Mc Erlean (refactoring to JUnit Rules and enabling disabled tests)
|
||||||
*/
|
*/
|
||||||
@Category(OwnJVMTestsCategory.class)
|
@Category(BaseSpringTestsCategory.class)
|
||||||
public class PreferenceServiceImplTest
|
public class PreferenceServiceImplTest
|
||||||
{
|
{
|
||||||
private static final Log log = LogFactory.getLog(PreferenceServiceImplTest.class);
|
private static final Log log = LogFactory.getLog(PreferenceServiceImplTest.class);
|
||||||
|
@@ -22,7 +22,7 @@ package org.alfresco.repo.publishing;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import org.alfresco.service.cmr.workflow.WorkflowPath;
|
import org.alfresco.service.cmr.workflow.WorkflowPath;
|
||||||
import org.alfresco.test_category.OwnJVMTestsCategory;
|
import org.alfresco.test_category.BaseSpringTestsCategory;
|
||||||
import org.junit.experimental.categories.Category;
|
import org.junit.experimental.categories.Category;
|
||||||
|
|
||||||
|
|
||||||
@@ -31,7 +31,7 @@ import org.junit.experimental.categories.Category;
|
|||||||
* @author Frederik Heremans
|
* @author Frederik Heremans
|
||||||
* @since 4.0
|
* @since 4.0
|
||||||
*/
|
*/
|
||||||
@Category(OwnJVMTestsCategory.class)
|
@Category(BaseSpringTestsCategory.class)
|
||||||
public class PublishWebContentActivitiTest extends PublishWebContentProcessTest
|
public class PublishWebContentActivitiTest extends PublishWebContentProcessTest
|
||||||
{
|
{
|
||||||
private static final String DEF_NAME = "activiti$publishWebContent";
|
private static final String DEF_NAME = "activiti$publishWebContent";
|
||||||
|
@@ -19,7 +19,7 @@
|
|||||||
|
|
||||||
package org.alfresco.repo.publishing;
|
package org.alfresco.repo.publishing;
|
||||||
|
|
||||||
import org.alfresco.test_category.OwnJVMTestsCategory;
|
import org.alfresco.test_category.BaseSpringTestsCategory;
|
||||||
import org.junit.experimental.categories.Category;
|
import org.junit.experimental.categories.Category;
|
||||||
|
|
||||||
|
|
||||||
@@ -28,7 +28,7 @@ import org.junit.experimental.categories.Category;
|
|||||||
* @author Frederik Heremans
|
* @author Frederik Heremans
|
||||||
* @since 4.0
|
* @since 4.0
|
||||||
*/
|
*/
|
||||||
@Category(OwnJVMTestsCategory.class)
|
@Category(BaseSpringTestsCategory.class)
|
||||||
public class PublishWebContentJbpmTest extends PublishWebContentProcessTest
|
public class PublishWebContentJbpmTest extends PublishWebContentProcessTest
|
||||||
{
|
{
|
||||||
private static final String DEF_NAME = "jbpm$publishWebContent";
|
private static final String DEF_NAME = "jbpm$publishWebContent";
|
||||||
|
@@ -43,7 +43,7 @@ import org.alfresco.service.cmr.workflow.WorkflowPath;
|
|||||||
import org.alfresco.service.cmr.workflow.WorkflowTask;
|
import org.alfresco.service.cmr.workflow.WorkflowTask;
|
||||||
import org.alfresco.service.cmr.workflow.WorkflowTaskState;
|
import org.alfresco.service.cmr.workflow.WorkflowTaskState;
|
||||||
import org.alfresco.service.namespace.QName;
|
import org.alfresco.service.namespace.QName;
|
||||||
import org.alfresco.test_category.OwnJVMTestsCategory;
|
import org.alfresco.test_category.BaseSpringTestsCategory;
|
||||||
import org.alfresco.util.BaseSpringTest;
|
import org.alfresco.util.BaseSpringTest;
|
||||||
import org.junit.experimental.categories.Category;
|
import org.junit.experimental.categories.Category;
|
||||||
import org.springframework.core.io.ClassPathResource;
|
import org.springframework.core.io.ClassPathResource;
|
||||||
@@ -54,7 +54,7 @@ import org.springframework.core.io.ClassPathResource;
|
|||||||
*
|
*
|
||||||
* @author davidc
|
* @author davidc
|
||||||
*/
|
*/
|
||||||
@Category(OwnJVMTestsCategory.class)
|
@Category(BaseSpringTestsCategory.class)
|
||||||
public class ReviewAndApproveTest extends BaseSpringTest
|
public class ReviewAndApproveTest extends BaseSpringTest
|
||||||
{
|
{
|
||||||
AuthenticationComponent authenticationComponent;
|
AuthenticationComponent authenticationComponent;
|
||||||
|
@@ -19,6 +19,7 @@
|
|||||||
package org.alfresco.util.schemacomp.model;
|
package org.alfresco.util.schemacomp.model;
|
||||||
|
|
||||||
|
|
||||||
|
import org.alfresco.test_category.BaseSpringTestsCategory;
|
||||||
import org.alfresco.test_category.OwnJVMTestsCategory;
|
import org.alfresco.test_category.OwnJVMTestsCategory;
|
||||||
import org.alfresco.util.schemacomp.DbProperty;
|
import org.alfresco.util.schemacomp.DbProperty;
|
||||||
import org.junit.Before;
|
import org.junit.Before;
|
||||||
@@ -32,7 +33,7 @@ import static org.junit.Assert.*;
|
|||||||
* Tests for the Column class.
|
* Tests for the Column class.
|
||||||
* @author Matt Ward
|
* @author Matt Ward
|
||||||
*/
|
*/
|
||||||
@Category(OwnJVMTestsCategory.class)
|
@Category(BaseSpringTestsCategory.class)
|
||||||
public class ColumnTest extends DbObjectTestBase<Column>
|
public class ColumnTest extends DbObjectTestBase<Column>
|
||||||
{
|
{
|
||||||
private Column thisColumn;
|
private Column thisColumn;
|
||||||
|
@@ -22,6 +22,7 @@ package org.alfresco.util.schemacomp.model;
|
|||||||
import static org.junit.Assert.*;
|
import static org.junit.Assert.*;
|
||||||
import static org.mockito.Mockito.verify;
|
import static org.mockito.Mockito.verify;
|
||||||
|
|
||||||
|
import org.alfresco.test_category.BaseSpringTestsCategory;
|
||||||
import org.alfresco.test_category.OwnJVMTestsCategory;
|
import org.alfresco.test_category.OwnJVMTestsCategory;
|
||||||
import org.alfresco.util.schemacomp.DbProperty;
|
import org.alfresco.util.schemacomp.DbProperty;
|
||||||
import org.junit.Before;
|
import org.junit.Before;
|
||||||
@@ -33,7 +34,7 @@ import org.junit.experimental.categories.Category;
|
|||||||
*
|
*
|
||||||
* @author Matt Ward
|
* @author Matt Ward
|
||||||
*/
|
*/
|
||||||
@Category(OwnJVMTestsCategory.class)
|
@Category(BaseSpringTestsCategory.class)
|
||||||
public class ForeignKeyTest extends DbObjectTestBase<ForeignKey>
|
public class ForeignKeyTest extends DbObjectTestBase<ForeignKey>
|
||||||
{
|
{
|
||||||
private ForeignKey thisFK, thatFK;
|
private ForeignKey thisFK, thatFK;
|
||||||
|
@@ -24,6 +24,7 @@ import static org.mockito.Mockito.verify;
|
|||||||
|
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
|
|
||||||
|
import org.alfresco.test_category.BaseSpringTestsCategory;
|
||||||
import org.alfresco.test_category.OwnJVMTestsCategory;
|
import org.alfresco.test_category.OwnJVMTestsCategory;
|
||||||
import org.alfresco.util.schemacomp.DbProperty;
|
import org.alfresco.util.schemacomp.DbProperty;
|
||||||
import org.junit.Before;
|
import org.junit.Before;
|
||||||
@@ -35,7 +36,7 @@ import org.junit.experimental.categories.Category;
|
|||||||
* Tests for the Index class.
|
* Tests for the Index class.
|
||||||
* @author Matt Ward
|
* @author Matt Ward
|
||||||
*/
|
*/
|
||||||
@Category(OwnJVMTestsCategory.class)
|
@Category(BaseSpringTestsCategory.class)
|
||||||
public class IndexTest extends DbObjectTestBase<Index>
|
public class IndexTest extends DbObjectTestBase<Index>
|
||||||
{
|
{
|
||||||
private Table thisTable;
|
private Table thisTable;
|
||||||
|
@@ -25,6 +25,7 @@ import static org.mockito.Mockito.verify;
|
|||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import org.alfresco.test_category.BaseSpringTestsCategory;
|
||||||
import org.alfresco.test_category.OwnJVMTestsCategory;
|
import org.alfresco.test_category.OwnJVMTestsCategory;
|
||||||
import org.alfresco.util.schemacomp.DbProperty;
|
import org.alfresco.util.schemacomp.DbProperty;
|
||||||
import org.junit.Before;
|
import org.junit.Before;
|
||||||
@@ -37,7 +38,7 @@ import org.junit.experimental.categories.Category;
|
|||||||
*
|
*
|
||||||
* @author Matt Ward
|
* @author Matt Ward
|
||||||
*/
|
*/
|
||||||
@Category(OwnJVMTestsCategory.class)
|
@Category(BaseSpringTestsCategory.class)
|
||||||
public class PrimaryKeyTest extends DbObjectTestBase<PrimaryKey>
|
public class PrimaryKeyTest extends DbObjectTestBase<PrimaryKey>
|
||||||
{
|
{
|
||||||
private PrimaryKey thisPK;
|
private PrimaryKey thisPK;
|
||||||
|
@@ -21,6 +21,7 @@ package org.alfresco.util.schemacomp.model;
|
|||||||
import static org.junit.Assert.*;
|
import static org.junit.Assert.*;
|
||||||
import static org.mockito.Mockito.verify;
|
import static org.mockito.Mockito.verify;
|
||||||
|
|
||||||
|
import org.alfresco.test_category.BaseSpringTestsCategory;
|
||||||
import org.alfresco.test_category.OwnJVMTestsCategory;
|
import org.alfresco.test_category.OwnJVMTestsCategory;
|
||||||
import org.alfresco.util.schemacomp.DbProperty;
|
import org.alfresco.util.schemacomp.DbProperty;
|
||||||
import org.junit.Before;
|
import org.junit.Before;
|
||||||
@@ -36,7 +37,7 @@ import org.mockito.runners.MockitoJUnitRunner;
|
|||||||
* @author Matt Ward
|
* @author Matt Ward
|
||||||
*/
|
*/
|
||||||
@RunWith(MockitoJUnitRunner.class)
|
@RunWith(MockitoJUnitRunner.class)
|
||||||
@Category(OwnJVMTestsCategory.class)
|
@Category(BaseSpringTestsCategory.class)
|
||||||
public class SchemaTest extends DbObjectTestBase<Schema>
|
public class SchemaTest extends DbObjectTestBase<Schema>
|
||||||
{
|
{
|
||||||
private Schema left;
|
private Schema left;
|
||||||
|
@@ -20,6 +20,7 @@ package org.alfresco.util.schemacomp.model;
|
|||||||
|
|
||||||
import static org.mockito.Mockito.verify;
|
import static org.mockito.Mockito.verify;
|
||||||
|
|
||||||
|
import org.alfresco.test_category.BaseSpringTestsCategory;
|
||||||
import org.alfresco.test_category.OwnJVMTestsCategory;
|
import org.alfresco.test_category.OwnJVMTestsCategory;
|
||||||
import org.junit.Before;
|
import org.junit.Before;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
@@ -29,7 +30,7 @@ import org.junit.experimental.categories.Category;
|
|||||||
* Tests for the Sequence class.
|
* Tests for the Sequence class.
|
||||||
* @author Matt Ward
|
* @author Matt Ward
|
||||||
*/
|
*/
|
||||||
@Category(OwnJVMTestsCategory.class)
|
@Category(BaseSpringTestsCategory.class)
|
||||||
public class SequenceTest extends DbObjectTestBase<Sequence>
|
public class SequenceTest extends DbObjectTestBase<Sequence>
|
||||||
{
|
{
|
||||||
private Sequence thisSequence;
|
private Sequence thisSequence;
|
||||||
|
@@ -24,6 +24,7 @@ import static org.mockito.Mockito.verify;
|
|||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import org.alfresco.test_category.BaseSpringTestsCategory;
|
||||||
import org.alfresco.test_category.OwnJVMTestsCategory;
|
import org.alfresco.test_category.OwnJVMTestsCategory;
|
||||||
import org.junit.Before;
|
import org.junit.Before;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
@@ -39,7 +40,7 @@ import org.mockito.runners.MockitoJUnitRunner;
|
|||||||
* @author Matt Ward
|
* @author Matt Ward
|
||||||
*/
|
*/
|
||||||
@RunWith(MockitoJUnitRunner.class)
|
@RunWith(MockitoJUnitRunner.class)
|
||||||
@Category(OwnJVMTestsCategory.class)
|
@Category(BaseSpringTestsCategory.class)
|
||||||
public class TableTest extends DbObjectTestBase<Table>
|
public class TableTest extends DbObjectTestBase<Table>
|
||||||
{
|
{
|
||||||
private Table table;
|
private Table table;
|
||||||
|
Reference in New Issue
Block a user