[seam-commits] Seam SVN: r14625 - in branches/community/Seam_2_3/examples-ee6/dvdstore/dvdstore-tests: src/test/java/com/jboss/dvd/seam/test and 1 other directory.
seam-commits at lists.jboss.org
seam-commits at lists.jboss.org
Fri Apr 20 09:58:06 EDT 2012
Author: maschmid
Date: 2012-04-20 09:58:06 -0400 (Fri, 20 Apr 2012)
New Revision: 14625
Modified:
branches/community/Seam_2_3/examples-ee6/dvdstore/dvdstore-tests/pom.xml
branches/community/Seam_2_3/examples-ee6/dvdstore/dvdstore-tests/src/test/java/com/jboss/dvd/seam/test/ProductUnitTest.java
Log:
update the dvdstore ProductUnitTest
Modified: branches/community/Seam_2_3/examples-ee6/dvdstore/dvdstore-tests/pom.xml
===================================================================
--- branches/community/Seam_2_3/examples-ee6/dvdstore/dvdstore-tests/pom.xml 2012-04-20 13:12:16 UTC (rev 14624)
+++ branches/community/Seam_2_3/examples-ee6/dvdstore/dvdstore-tests/pom.xml 2012-04-20 13:58:06 UTC (rev 14625)
@@ -77,6 +77,12 @@
<artifactId>jboss-el-api_2.2_spec</artifactId>
</dependency>
+ <dependency>
+ <groupId>org.hibernate</groupId>
+ <artifactId>hibernate-validator</artifactId>
+ <scope>provided</scope>
+ </dependency>
+
</dependencies>
<build>
Modified: branches/community/Seam_2_3/examples-ee6/dvdstore/dvdstore-tests/src/test/java/com/jboss/dvd/seam/test/ProductUnitTest.java
===================================================================
--- branches/community/Seam_2_3/examples-ee6/dvdstore/dvdstore-tests/src/test/java/com/jboss/dvd/seam/test/ProductUnitTest.java 2012-04-20 13:12:16 UTC (rev 14624)
+++ branches/community/Seam_2_3/examples-ee6/dvdstore/dvdstore-tests/src/test/java/com/jboss/dvd/seam/test/ProductUnitTest.java 2012-04-20 13:58:06 UTC (rev 14625)
@@ -3,7 +3,7 @@
import java.io.File;
import javax.persistence.EntityManager;
-import javax.persistence.PersistenceException;
+import javax.validation.ConstraintViolationException;
import org.jboss.arquillian.container.test.api.Deployment;
import org.jboss.arquillian.container.test.api.OverProtocol;
@@ -57,7 +57,7 @@
try {
em.persist(p);
Assert.fail("empty product persisted");
- } catch (PersistenceException e) {
+ } catch (ConstraintViolationException e) {
// good
}
}
More information about the seam-commits
mailing list