Refine search
@After public void doAfterTest() { // FIXME LATER // TestObstructionDetection.checkObstruction(); }
@After public void tearDown() throws Exception { EntityManager em = emf.createEntityManager(); em.remove(em.find(StudentMongoBigDecimal.class, getMinValue(BigDecimal.class))); emf.close(); }
@After public void after() throws Exception { EntityManagerFactory emf = (EntityManagerFactory) context.get(EnvironmentName.ENTITY_MANAGER_FACTORY); UserTransaction ut = InitialContext.doLookup("java:comp/UserTransaction"); ut.begin(); try { EntityManager em = emf.createEntityManager(); em.createQuery("delete from CorrelationPropertyInfo").executeUpdate(); em.createQuery("delete from CorrelationKeyInfo").executeUpdate(); ut.commit(); } catch (Exception ex) { ut.rollback(); Assert.fail("Exception thrown while trying to cleanup correlation data."); } cleanUp(context); }
/** * Tear down. */ @After public void tearDown() { em.createQuery("DELETE FROM Person p").executeUpdate(); em.close(); emf.close(); }
/** * Tear down. * * @throws Exception * the exception */ @After public void tearDown() throws Exception { EntityManager em = emf.createEntityManager(); em.close(); }
@After public void tearDown() throws Exception { EntityManager em = emf.createEntityManager(); em.remove(em.find(StudentMongoUUID.class, getMinValue(UUID.class))); MongoUtils.dropDatabase(emf, "MongoDataTypeTest"); emf.close(); }
@After public void cleanUp() { ContextHierarchyDirtiesContextTests.context = null; ContextHierarchyDirtiesContextTests.foo = null; ContextHierarchyDirtiesContextTests.bar = null; ContextHierarchyDirtiesContextTests.baz = null; }
@After public void closeContext() { if (this.context != null) { this.context.close(); } }
@After public void closeContext() { if (context != null) { context.close(); } }