In my project we have a super class that extends AbstractTestNGSpringContextTests and all test classes extends this class.
The super class have @BeforeClass and @AfterClass to populate and delete...
Type: Posts; User: andvicente; Keyword(s):
In my project we have a super class that extends AbstractTestNGSpringContextTests and all test classes extends this class.
The super class have @BeforeClass and @AfterClass to populate and delete...
I have a method that updates a row in a table.
After the update I call the flush hibernate operation .
I annotated this method with @Transactional, but after the test method the table continue...
When I develop a Transactional testing class, I have to extend AbstractTransactionalSpringContextTests to rollback?
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations=("/lyc.aon.test.bean.tec.lteste.cfg.xml"))
@Transactional
public class TesteIntegracao
public TesteIntegracao(String......
What can be characterized a wrong use of service or repository?
The problem is after flush. When I force rollback the table unlock, and the test case pass.
repositorio.flush();
...
I have a JUnit Testing Class that extends SpringJUnit4ClassRunner.class
@Test
@Transactional
public void teste1() throws ParseException, SQLException{
...