org.hibernate.search.test
Class TestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.hibernate.search.test.TestCase
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
SearchTestCase

public abstract class TestCase
extends junit.framework.TestCase

A modified base class for tests without annotations.

Author:
Hardy Ferentschik

Field Summary
protected static org.hibernate.cfg.Configuration cfg
           
protected static org.hibernate.dialect.Dialect dialect
           
protected static java.lang.Class lastTestClass
           
protected  org.hibernate.Session session
           
protected static org.hibernate.SessionFactory sessions
           
 
Constructor Summary
TestCase()
           
TestCase(java.lang.String x)
           
 
Method Summary
protected  void buildSessionFactory(java.lang.String[] xmlFiles)
           
protected  void configure(org.hibernate.cfg.Configuration cfg)
           
protected static org.hibernate.cfg.Configuration getCfg()
           
protected  org.hibernate.dialect.Dialect getDialect()
           
protected  org.hibernate.SessionFactory getSessions()
           
protected  java.lang.String[] getXmlFiles()
           
 org.hibernate.Session openSession()
           
 org.hibernate.Session openSession(org.hibernate.Interceptor interceptor)
           
protected  boolean recreateSchema()
           
protected  void runTest()
           
protected static void setCfg(org.hibernate.cfg.Configuration cfg)
           
protected  void setDialect(org.hibernate.dialect.Dialect dialect)
           
protected  void setSessions(org.hibernate.SessionFactory sessions)
           
protected  void setUp()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, setName, tearDown, 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

sessions

protected static org.hibernate.SessionFactory sessions

cfg

protected static org.hibernate.cfg.Configuration cfg

dialect

protected static org.hibernate.dialect.Dialect dialect

lastTestClass

protected static java.lang.Class lastTestClass

session

protected org.hibernate.Session session
Constructor Detail

TestCase

public TestCase()

TestCase

public TestCase(java.lang.String x)
Method Detail

buildSessionFactory

protected void buildSessionFactory(java.lang.String[] xmlFiles)
                            throws java.lang.Exception
Throws:
java.lang.Exception

setUp

protected void setUp()
              throws java.lang.Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
java.lang.Exception

runTest

protected void runTest()
                throws java.lang.Throwable
Overrides:
runTest in class junit.framework.TestCase
Throws:
java.lang.Throwable

openSession

public org.hibernate.Session openSession()
                                  throws org.hibernate.HibernateException
Throws:
org.hibernate.HibernateException

openSession

public org.hibernate.Session openSession(org.hibernate.Interceptor interceptor)
                                  throws org.hibernate.HibernateException
Throws:
org.hibernate.HibernateException

getXmlFiles

protected java.lang.String[] getXmlFiles()

setSessions

protected void setSessions(org.hibernate.SessionFactory sessions)

getSessions

protected org.hibernate.SessionFactory getSessions()

setDialect

protected void setDialect(org.hibernate.dialect.Dialect dialect)

getDialect

protected org.hibernate.dialect.Dialect getDialect()

setCfg

protected static void setCfg(org.hibernate.cfg.Configuration cfg)

getCfg

protected static org.hibernate.cfg.Configuration getCfg()

configure

protected void configure(org.hibernate.cfg.Configuration cfg)

recreateSchema

protected boolean recreateSchema()


Copyright © 2006-2010 Hibernate. All Rights Reserved.