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

58376: Added additional tests to ownJVMCategory


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@61971 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Alan Davis
2014-02-11 23:20:56 +00:00
parent 9434548918
commit 068939e250
85 changed files with 257 additions and 2 deletions

View File

@@ -19,9 +19,12 @@
package org.alfresco.util.schemacomp.model;
import org.alfresco.test_category.OwnJVMTestsCategory;
import org.alfresco.util.schemacomp.DbProperty;
import org.junit.Before;
import org.junit.Test;
import org.junit.experimental.categories.Category;
import static org.mockito.Mockito.*;
import static org.junit.Assert.*;
@@ -29,6 +32,7 @@ import static org.junit.Assert.*;
* Tests for the Column class.
* @author Matt Ward
*/
@Category(OwnJVMTestsCategory.class)
public class ColumnTest extends DbObjectTestBase<Column>
{
private Column thisColumn;

View File

@@ -22,15 +22,18 @@ package org.alfresco.util.schemacomp.model;
import static org.junit.Assert.*;
import static org.mockito.Mockito.verify;
import org.alfresco.test_category.OwnJVMTestsCategory;
import org.alfresco.util.schemacomp.DbProperty;
import org.junit.Before;
import org.junit.Test;
import org.junit.experimental.categories.Category;
/**
* Tests for the ForeignKey class.
*
* @author Matt Ward
*/
@Category(OwnJVMTestsCategory.class)
public class ForeignKeyTest extends DbObjectTestBase<ForeignKey>
{
private ForeignKey thisFK, thatFK;

View File

@@ -24,15 +24,18 @@ import static org.mockito.Mockito.verify;
import java.util.Arrays;
import org.alfresco.test_category.OwnJVMTestsCategory;
import org.alfresco.util.schemacomp.DbProperty;
import org.junit.Before;
import org.junit.Test;
import org.junit.experimental.categories.Category;
/**
* Tests for the Index class.
* @author Matt Ward
*/
@Category(OwnJVMTestsCategory.class)
public class IndexTest extends DbObjectTestBase<Index>
{
private Table thisTable;

View File

@@ -25,9 +25,11 @@ import static org.mockito.Mockito.verify;
import java.util.Arrays;
import java.util.List;
import org.alfresco.test_category.OwnJVMTestsCategory;
import org.alfresco.util.schemacomp.DbProperty;
import org.junit.Before;
import org.junit.Test;
import org.junit.experimental.categories.Category;
/**
@@ -35,6 +37,7 @@ import org.junit.Test;
*
* @author Matt Ward
*/
@Category(OwnJVMTestsCategory.class)
public class PrimaryKeyTest extends DbObjectTestBase<PrimaryKey>
{
private PrimaryKey thisPK;

View File

@@ -21,9 +21,11 @@ package org.alfresco.util.schemacomp.model;
import static org.junit.Assert.*;
import static org.mockito.Mockito.verify;
import org.alfresco.test_category.OwnJVMTestsCategory;
import org.alfresco.util.schemacomp.DbProperty;
import org.junit.Before;
import org.junit.Test;
import org.junit.experimental.categories.Category;
import org.junit.runner.RunWith;
import org.mockito.Mockito;
import org.mockito.runners.MockitoJUnitRunner;
@@ -34,6 +36,7 @@ import org.mockito.runners.MockitoJUnitRunner;
* @author Matt Ward
*/
@RunWith(MockitoJUnitRunner.class)
@Category(OwnJVMTestsCategory.class)
public class SchemaTest extends DbObjectTestBase<Schema>
{
private Schema left;

View File

@@ -20,13 +20,16 @@ package org.alfresco.util.schemacomp.model;
import static org.mockito.Mockito.verify;
import org.alfresco.test_category.OwnJVMTestsCategory;
import org.junit.Before;
import org.junit.Test;
import org.junit.experimental.categories.Category;
/**
* Tests for the Sequence class.
* @author Matt Ward
*/
@Category(OwnJVMTestsCategory.class)
public class SequenceTest extends DbObjectTestBase<Sequence>
{
private Sequence thisSequence;

View File

@@ -24,8 +24,10 @@ import static org.mockito.Mockito.verify;
import java.util.ArrayList;
import java.util.List;
import org.alfresco.test_category.OwnJVMTestsCategory;
import org.junit.Before;
import org.junit.Test;
import org.junit.experimental.categories.Category;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.mockito.Mockito;
@@ -37,6 +39,7 @@ import org.mockito.runners.MockitoJUnitRunner;
* @author Matt Ward
*/
@RunWith(MockitoJUnitRunner.class)
@Category(OwnJVMTestsCategory.class)
public class TableTest extends DbObjectTestBase<Table>
{
private Table table;