org.jvnet.hyperjaxb3.ejb.test
Class AbstractEntityManagerSamplesTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.jvnet.hyperjaxb3.ejb.test.AbstractEntityManagerTest
              extended by org.jvnet.hyperjaxb3.ejb.test.AbstractEntityManagerSamplesTest
All Implemented Interfaces:
junit.framework.Test, org.jvnet.jaxb2_commons.xml.bind.ContextPathAware
Direct Known Subclasses:
RoundtripTest

public abstract class AbstractEntityManagerSamplesTest
extends AbstractEntityManagerTest
implements org.jvnet.jaxb2_commons.xml.bind.ContextPathAware


Field Summary
static String DEFAULT_SAMPLES_DIRECTORY_NAME
           
 
Fields inherited from class org.jvnet.hyperjaxb3.ejb.test.AbstractEntityManagerTest
entityManagerFactory, lastTestClass, logger
 
Constructor Summary
AbstractEntityManagerSamplesTest()
           
 
Method Summary
protected abstract  void checkSample(File sample)
           
protected  JAXBContext createContext()
           
protected  org.jvnet.jaxb2_commons.test.AbstractSamplesTest createSamplesTest()
           
protected  File getBaseDir()
           
protected  ClassLoader getContextClassLoader()
           
 String getContextPath()
           
 String getPersistenceUnitName()
           
protected  File[] getSampleFiles()
           
protected  File getSamplesDirectory()
           
protected  String getSamplesDirectoryName()
           
 void setUp()
           
 void tearDown()
           
 void testSamples()
           
 
Methods inherited from class org.jvnet.hyperjaxb3.ejb.test.AbstractEntityManagerTest
createEntityManager, createEntityManagerFactory, getEntityManagerFactory, getEntityManagerFactoryProperties, getEntityManagerFactoryPropertiesResourceName, getEntityManagerProperties, setEntityManagerFactory
 
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, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT_SAMPLES_DIRECTORY_NAME

public static final String DEFAULT_SAMPLES_DIRECTORY_NAME
See Also:
Constant Field Values
Constructor Detail

AbstractEntityManagerSamplesTest

public AbstractEntityManagerSamplesTest()
Method Detail

setUp

public void setUp()
           throws Exception
Overrides:
setUp in class AbstractEntityManagerTest
Throws:
Exception

tearDown

public void tearDown()
              throws Exception
Overrides:
tearDown in class junit.framework.TestCase
Throws:
Exception

createSamplesTest

protected org.jvnet.jaxb2_commons.test.AbstractSamplesTest createSamplesTest()

testSamples

public void testSamples()
                 throws Exception
Throws:
Exception

createContext

protected JAXBContext createContext()
                             throws JAXBException
Throws:
JAXBException

getPersistenceUnitName

public String getPersistenceUnitName()
Overrides:
getPersistenceUnitName in class AbstractEntityManagerTest

checkSample

protected abstract void checkSample(File sample)
                             throws Exception
Throws:
Exception

getContextPath

public String getContextPath()
Specified by:
getContextPath in interface org.jvnet.jaxb2_commons.xml.bind.ContextPathAware

getBaseDir

protected File getBaseDir()

getSamplesDirectory

protected File getSamplesDirectory()

getSampleFiles

protected File[] getSampleFiles()

getSamplesDirectoryName

protected String getSamplesDirectoryName()

getContextClassLoader

protected ClassLoader getContextClassLoader()


Copyright © 2005-2014. All Rights Reserved.