incubator-bval-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r931263 - /incubator/bval/sandbox/guice-integration/src/test/java/org/apache/bval/extentions/guice/GuiceAwareValidationTestCase.java
Date Tue, 06 Apr 2010 18:27:06 GMT
Author: simonetripodi
Date: Tue Apr  6 18:27:06 2010
New Revision: 931263

URL: http://svn.apache.org/viewvc?rev=931263&view=rev
Log:
fixed expected exception on AOP test

Modified:
    incubator/bval/sandbox/guice-integration/src/test/java/org/apache/bval/extentions/guice/GuiceAwareValidationTestCase.java

Modified: incubator/bval/sandbox/guice-integration/src/test/java/org/apache/bval/extentions/guice/GuiceAwareValidationTestCase.java
URL: http://svn.apache.org/viewvc/incubator/bval/sandbox/guice-integration/src/test/java/org/apache/bval/extentions/guice/GuiceAwareValidationTestCase.java?rev=931263&r1=931262&r2=931263&view=diff
==============================================================================
--- incubator/bval/sandbox/guice-integration/src/test/java/org/apache/bval/extentions/guice/GuiceAwareValidationTestCase.java
(original)
+++ incubator/bval/sandbox/guice-integration/src/test/java/org/apache/bval/extentions/guice/GuiceAwareValidationTestCase.java
Tue Apr  6 18:27:06 2010
@@ -19,6 +19,7 @@ package org.apache.bval.extentions.guice
 import java.util.Set;
 
 import javax.validation.ConstraintViolation;
+import javax.validation.ConstraintViolationException;
 import javax.validation.Validator;
 
 import junit.framework.TestCase;
@@ -73,7 +74,7 @@ public final class GuiceAwareValidationT
         try {
             this.dummyCountryDao.insertCountry(country);
             fail("javax.validation.ConstraintViolationException expected");
-        } catch (Throwable t) {
+        } catch (ConstraintViolationException cve) {
             // do nothing
         }
     }



Mime
View raw message