站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBOSS Portal 2.4 API 英文版文档

MigrationTestCase - JBOSS Portal 2.4 API 英文版文档


org.jboss.portal.test.migration
Class MigrationTestCase

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.jboss.portal.test.migration.MigrationTestCase
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
Migrate22_24TestCase

public abstract class MigrationTestCase
extends junit.framework.TestCase


Field Summary
protected  org.dbunit.database.IDatabaseConnection fromConnection
           
protected  org.hibernate.SessionFactory fromFactory
           
protected  org.dbunit.dataset.IDataSet fromRefDataSet
           
protected  org.hibernate.Session fromSession
           
protected  org.hibernate.Transaction fromTx
           
protected  org.dbunit.database.IDatabaseConnection toConnection
           
protected  org.hibernate.SessionFactory toFactory
           
protected  org.dbunit.dataset.IDataSet toRefDataSet
           
protected  org.hibernate.Session toSession
           
protected  org.hibernate.Transaction toTx
           
 
Constructor Summary
MigrationTestCase(java.lang.String name)
           
 
Method Summary
protected abstract  java.lang.String getFromRefDatasetFile()
           
protected abstract  org.hibernate.cfg.Configuration getFromTestConfiguration()
           
protected abstract  org.hibernate.cfg.Configuration getToTestConfiguration()
           
protected  void nextFromSession()
           
protected  void nextToSession()
           
protected  void populate()
           
 void setUp()
           
protected  void tearDown()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

fromFactory

protected org.hibernate.SessionFactory fromFactory

toFactory

protected org.hibernate.SessionFactory toFactory

fromSession

protected org.hibernate.Session fromSession

toSession

protected org.hibernate.Session toSession

fromTx

protected org.hibernate.Transaction fromTx

toTx

protected org.hibernate.Transaction toTx

fromConnection

protected org.dbunit.database.IDatabaseConnection fromConnection

toConnection

protected org.dbunit.database.IDatabaseConnection toConnection

fromRefDataSet

protected org.dbunit.dataset.IDataSet fromRefDataSet

toRefDataSet

protected org.dbunit.dataset.IDataSet toRefDataSet
Constructor Detail

MigrationTestCase

public MigrationTestCase(java.lang.String name)
Method Detail

setUp

public void setUp()
           throws java.lang.Exception
Throws:
java.lang.Exception

tearDown

protected void tearDown()
                 throws java.lang.Exception
Throws:
java.lang.Exception

nextFromSession

protected void nextFromSession()
                        throws java.lang.Exception
Throws:
java.lang.Exception

nextToSession

protected void nextToSession()
                      throws java.lang.Exception
Throws:
java.lang.Exception

populate

protected void populate()
                 throws java.lang.Exception
Throws:
java.lang.Exception

getFromTestConfiguration

protected abstract org.hibernate.cfg.Configuration getFromTestConfiguration()

getToTestConfiguration

protected abstract org.hibernate.cfg.Configuration getToTestConfiguration()

getFromRefDatasetFile

protected abstract java.lang.String getFromRefDatasetFile()