org.hibernate.test.annotations
Class HibernateTestCase
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
org.hibernate.test.annotations.HibernateTestCase
- All Implemented Interfaces:
- junit.framework.Test
public abstract class HibernateTestCase
- extends junit.framework.TestCase
A base class for all tests.
- Author:
- Emmnauel Bernand, Hardy Ferentschik
Methods inherited from class junit.framework.TestCase |
countTestCases, createResult, getName, run, run, 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 |
log
public static final org.slf4j.Logger log
cfg
protected static Configuration cfg
HibernateTestCase
public HibernateTestCase()
HibernateTestCase
public HibernateTestCase(String x)
runBare
public void runBare()
throws Throwable
- Overrides:
runBare
in class junit.framework.TestCase
- Throws:
Throwable
runTest
protected void runTest()
throws Throwable
- Overrides:
runTest
in class junit.framework.TestCase
- Throws:
Throwable
setUp
protected void setUp()
throws Exception
- Overrides:
setUp
in class junit.framework.TestCase
- Throws:
Exception
tearDown
protected void tearDown()
throws Exception
- Overrides:
tearDown
in class junit.framework.TestCase
- Throws:
Exception
determineSkipByDialect
protected final HibernateTestCase.Skip determineSkipByDialect(Dialect dialect,
Method runMethod)
throws Exception
- Throws:
Exception
locateAnnotation
protected <T extends Annotation> T locateAnnotation(Class<T> annotationClass,
Method runMethod)
buildSkip
protected HibernateTestCase.Skip buildSkip(Dialect dialect,
String comment,
String jiraKey)
fullTestName
public String fullTestName()
buildConfiguration
protected abstract void buildConfiguration()
throws Exception
- Throws:
Exception
getAnnotatedClasses
protected abstract Class<?>[] getAnnotatedClasses()
getMappings
protected String[] getMappings()
handleUnclosedResources
protected abstract void handleUnclosedResources()
closeResources
protected abstract void closeResources()
getAnnotatedPackages
protected String[] getAnnotatedPackages()
getXmlFiles
protected String[] getXmlFiles()
getDialect
protected Dialect getDialect()
setCfg
protected static void setCfg(Configuration cfg)
getCfg
protected static Configuration getCfg()
configure
protected void configure(Configuration cfg)
recreateSchema
protected boolean recreateSchema()
runSchemaGeneration
protected void runSchemaGeneration()
runSchemaDrop
protected void runSchemaDrop()
reportSkip
protected void reportSkip(String reason,
String testDescription)
Copyright © 2001-2010 Red Hat, Inc. All Rights Reserved.