org.alfresco.util.schemacomp.model
Class DbObjectTestBase

java.lang.Object
  extended by org.alfresco.util.schemacomp.model.DbObjectTestBase
Direct Known Subclasses:
ColumnTest, ForeignKeyTest, IndexTest, PrimaryKeyTest, SchemaTest, SequenceTest, TableTest

public abstract class DbObjectTestBase
extends java.lang.Object

Abstract base class for tests for AbstractDbObject subclasses.


Field Summary
protected  ComparisonUtils comparisonUtils
           
protected  DiffContext ctx
           
protected  org.hibernate.dialect.Dialect dialect
           
protected  Results differences
           
protected  org.mockito.InOrder inOrder
           
protected  DbObjectVisitor visitor
           
 
Constructor Summary
DbObjectTestBase()
           
 
Method Summary
 void baseSetUp()
           
 void canDiffObjects()
           
protected abstract  void doDiffTests()
           
protected  java.util.List getMocksUsedInDiff()
          Override to add additional mocks to the InOrder call verification.
protected abstract  AbstractDbObject getThatObject()
           
protected abstract  AbstractDbObject getThisObject()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dialect

protected org.hibernate.dialect.Dialect dialect

differences

protected Results differences

ctx

protected DiffContext ctx

comparisonUtils

protected ComparisonUtils comparisonUtils

inOrder

protected org.mockito.InOrder inOrder

visitor

protected DbObjectVisitor visitor
Constructor Detail

DbObjectTestBase

public DbObjectTestBase()
Method Detail

getThisObject

protected abstract AbstractDbObject getThisObject()

getThatObject

protected abstract AbstractDbObject getThatObject()

baseSetUp

public final void baseSetUp()

getMocksUsedInDiff

protected java.util.List getMocksUsedInDiff()
Override to add additional mocks to the InOrder call verification.

Returns:
List

canDiffObjects

public void canDiffObjects()

doDiffTests

protected abstract void doDiffTests()


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.