Class EntityManagerRule

  • All Implemented Interfaces:
    org.junit.rules.TestRule

    public class EntityManagerRule
    extends java.lang.Object
    implements org.junit.rules.TestRule
    EntityManager TestRule.
    Author:
    Daniel Sagenschneider
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.junit.runners.model.Statement apply​(org.junit.runners.model.Statement base, org.junit.runner.Description description)  
      javax.persistence.EntityManager getEntityManager()
      Obtains the EntityManager.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getEntityManager

        public javax.persistence.EntityManager getEntityManager()
        Obtains the EntityManager.
        Returns:
        EntityManager.
      • apply

        public org.junit.runners.model.Statement apply​(org.junit.runners.model.Statement base,
                                                       org.junit.runner.Description description)
        Specified by:
        apply in interface org.junit.rules.TestRule