jeudi 4 juin 2015

Using autocommit inside dbunit test

I'm doing some test but they get hang when I test a method where I set the connection autocommit to false

//code 
conexion.setAutoCommit( false );  // it hang at this point
//more code

If I comment this line all the tests pass poroperly. I stop it after the hanging I try to test again and the connection with the BD seems to be freeze

Is there any restriction with the autocommit property in DBUnit? The Database is SQL Server 2012

thanks.

Aucun commentaire:

Enregistrer un commentaire