Fix classpaths regarding slf4j versions
- Defined global slf4jVersion as '1.6.1' in the Gradle build. - Replaced dependencies on slf4j-log4j12 with slf4j-jcl where possible; however, spring-test-mvc still depends on jcl-over-slf4j and slf4j-log4j12 (see SPR-10070). - Reenabled HibernateSessionFlushingTests. - Verified that the following tests pass in the Gradle build and within Eclipse: - HibernateSessionFlushingTests - HibernateTransactionManagerTests (Hibernate 3) - HibernateTransactionManagerTests (Hibernate 4) - RequestResponseBodyMethodProcessorTests Issue: SPR-9421, SPR-10066
This commit is contained in:
@@ -23,8 +23,10 @@ import static org.springframework.test.transaction.TransactionTestUtils.assertIn
|
||||
import org.hibernate.SessionFactory;
|
||||
import org.hibernate.exception.ConstraintViolationException;
|
||||
import org.hibernate.exception.GenericJDBCException;
|
||||
|
||||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.test.context.ContextConfiguration;
|
||||
import org.springframework.test.context.junit4.AbstractTransactionalJUnit4SpringContextTests;
|
||||
@@ -39,7 +41,6 @@ import org.springframework.test.context.junit4.orm.service.PersonService;
|
||||
* @author Sam Brannen
|
||||
* @since 3.0
|
||||
*/
|
||||
@org.junit.Ignore // TODO SPR-8116 (Hibernate classpath-related)
|
||||
@ContextConfiguration
|
||||
public class HibernateSessionFlushingTests extends AbstractTransactionalJUnit4SpringContextTests {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user