Skip to content

Commit 9bd7030

Browse files
author
eugenp
committed
upgrading to spring 4
1 parent b9176ba commit 9bd7030

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

spring-hibernate4/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@
182182

183183
<properties>
184184
<!-- Spring -->
185-
<org.springframework.version>3.2.6.RELEASE</org.springframework.version>
185+
<org.springframework.version>4.0.0.RELEASE</org.springframework.version>
186186
<org.springframework.security.version>3.2.0.RELEASE</org.springframework.security.version>
187187
<javassist.version>3.18.1-GA</javassist.version>
188188

spring-hibernate4/src/test/java/org/baeldung/spring/persistence/service/FooServicePersistenceIntegrationTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
import org.baeldung.persistence.model.Foo;
66
import org.baeldung.persistence.service.IFooService;
77
import org.baeldung.spring.PersistenceConfig;
8-
import org.hibernate.exception.DataException;
98
import org.junit.Ignore;
109
import org.junit.Test;
1110
import org.junit.runner.RunWith;
1211
import org.springframework.beans.factory.annotation.Autowired;
12+
import org.springframework.dao.DataAccessException;
1313
import org.springframework.dao.DataIntegrityViolationException;
1414
import org.springframework.dao.InvalidDataAccessApiUsageException;
1515
import org.springframework.test.context.ContextConfiguration;
@@ -53,7 +53,7 @@ public final void whenSameEntityIsCreatedTwice_thenDataException() {
5353
service.create(entity);
5454
}
5555

56-
@Test(expected = DataException.class)
56+
@Test(expected = DataAccessException.class)
5757
public final void temp_whenInvalidEntityIsCreated_thenDataException() {
5858
service.create(new Foo(randomAlphabetic(2048)));
5959
}

0 commit comments

Comments
 (0)