Code example for AbstractTransactionalTestNGSpringContextTests

0
 * @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"; 
 
	@EJB 
	protected TestEntityDao dao; 
 
	@PersistenceContext 
	protected EntityManager em; 
 
 
	@Test 
	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