Skip to content

Commit

Permalink
upgrading to spring 4
Browse files Browse the repository at this point in the history
  • Loading branch information
eugenp committed Dec 18, 2013
1 parent b9176ba commit 9bd7030
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion spring-hibernate4/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@

<properties>
<!-- Spring -->
<org.springframework.version>3.2.6.RELEASE</org.springframework.version>
<org.springframework.version>4.0.0.RELEASE</org.springframework.version>
<org.springframework.security.version>3.2.0.RELEASE</org.springframework.security.version>
<javassist.version>3.18.1-GA</javassist.version>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
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;
Expand Down Expand Up @@ -53,7 +53,7 @@ public final void whenSameEntityIsCreatedTwice_thenDataException() {
service.create(entity);
}

@Test(expected = DataException.class)
@Test(expected = DataAccessException.class)
public final void temp_whenInvalidEntityIsCreated_thenDataException() {
service.create(new Foo(randomAlphabetic(2048)));
}
Expand Down

0 comments on commit 9bd7030

Please sign in to comment.