Code example for AbstractTransactionalTestNGSpringContextTests

 * @author Sam Brannen 
 * @author Xavier Detant 
 * @since 4.0.1 
@DirtiesContext(classMode = ClassMode.AFTER_CLASS) 
public abstract class AbstractEjbTxDaoTestNGTests extends AbstractTransactionalTestNGSpringContextTests { 
	protected static final String TEST_NAME = "test-name"; 
	protected TestEntityDao dao; 
	protected EntityManager em; 
	public void test1InitialState() { 
		int count = dao.getCount(TEST_NAME); 
		assertEquals("New TestEntity should have count=0.", 0, count); 
Connect your IDE to all the code out there  Get Codota for Java