From 9bd7030906a2d4835708336923fe8dbb927b421d Mon Sep 17 00:00:00 2001 From: eugenp Date: Wed, 18 Dec 2013 15:37:44 +0200 Subject: [PATCH] upgrading to spring 4 --- spring-hibernate4/pom.xml | 2 +- .../service/FooServicePersistenceIntegrationTest.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/spring-hibernate4/pom.xml b/spring-hibernate4/pom.xml index 29bda8bb21..45f6dbbe8e 100644 --- a/spring-hibernate4/pom.xml +++ b/spring-hibernate4/pom.xml @@ -182,7 +182,7 @@ - 3.2.6.RELEASE + 4.0.0.RELEASE 3.2.0.RELEASE 3.18.1-GA diff --git a/spring-hibernate4/src/test/java/org/baeldung/spring/persistence/service/FooServicePersistenceIntegrationTest.java b/spring-hibernate4/src/test/java/org/baeldung/spring/persistence/service/FooServicePersistenceIntegrationTest.java index 6e90e87c90..4c0413a01a 100644 --- a/spring-hibernate4/src/test/java/org/baeldung/spring/persistence/service/FooServicePersistenceIntegrationTest.java +++ b/spring-hibernate4/src/test/java/org/baeldung/spring/persistence/service/FooServicePersistenceIntegrationTest.java @@ -5,11 +5,11 @@ import static org.apache.commons.lang3.RandomStringUtils.randomAlphabetic; import org.baeldung.persistence.model.Foo; import org.baeldung.persistence.service.IFooService; import org.baeldung.spring.PersistenceConfig; -import org.hibernate.exception.DataException; import org.junit.Ignore; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.dao.DataAccessException; import org.springframework.dao.DataIntegrityViolationException; import org.springframework.dao.InvalidDataAccessApiUsageException; import org.springframework.test.context.ContextConfiguration; @@ -53,7 +53,7 @@ public class FooServicePersistenceIntegrationTest { service.create(entity); } - @Test(expected = DataException.class) + @Test(expected = DataAccessException.class) public final void temp_whenInvalidEntityIsCreated_thenDataException() { service.create(new Foo(randomAlphabetic(2048))); }