Search:

Type: Posts; User: andvicente; Keyword(s):

Search: Search took 0.01 seconds.

  1. AbstractTestNGSpringContextTests @BeforeMethod

    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...
  2. @Transactional with Flush didnīt Rollback

    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...
  3. Transactional Testing (Spring + TestNG)

    When I develop a Transactional testing class, I have to extend AbstractTransactionalSpringContextTests to rollback?
  4. Replies
    5
    Views
    1,425

    @RunWith(SpringJUnit4ClassRunner.class)...

    @RunWith(SpringJUnit4ClassRunner.class)
    @ContextConfiguration(locations=("/lyc.aon.test.bean.tec.lteste.cfg.xml"))
    @Transactional
    public class TesteIntegracao

    public TesteIntegracao(String......
  5. Replies
    5
    Views
    1,425

    What can be characterized a wrong use of service...

    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();
    ...
  6. Replies
    5
    Views
    1,425

    Hibernate Transaction

    I have a JUnit Testing Class that extends SpringJUnit4ClassRunner.class



    @Test
    @Transactional
    public void teste1() throws ParseException, SQLException{
    ...
Results 1 to 6 of 6