incubator-bval-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r959914 - /incubator/bval/trunk/bval-guice/src/test/java/org/apache/bval/guice/GuiceAwareValidationTestCase.java
Date Fri, 02 Jul 2010 08:10:47 GMT
Author: simonetripodi
Date: Fri Jul  2 08:10:46 2010
New Revision: 959914

URL: http://svn.apache.org/viewvc?rev=959914&view=rev
Log:
added test method to verify wrapped exceptions are correctly thrown

Modified:
    incubator/bval/trunk/bval-guice/src/test/java/org/apache/bval/guice/GuiceAwareValidationTestCase.java

Modified: incubator/bval/trunk/bval-guice/src/test/java/org/apache/bval/guice/GuiceAwareValidationTestCase.java
URL: http://svn.apache.org/viewvc/incubator/bval/trunk/bval-guice/src/test/java/org/apache/bval/guice/GuiceAwareValidationTestCase.java?rev=959914&r1=959913&r2=959914&view=diff
==============================================================================
--- incubator/bval/trunk/bval-guice/src/test/java/org/apache/bval/guice/GuiceAwareValidationTestCase.java
(original)
+++ incubator/bval/trunk/bval-guice/src/test/java/org/apache/bval/guice/GuiceAwareValidationTestCase.java
Fri Jul  2 08:10:46 2010
@@ -78,4 +78,13 @@ public final class GuiceAwareValidationT
         }
     }
 
+    public void testRethrowWrappedException() {
+        try {
+            this.dummyCountryDao.updateCountry(new Country());
+            fail("org.apache.bval.guice.DummyException expected");
+        } catch (Exception e) {
+            assertEquals(DummyException.class, e.getClass());
+        }
+    }
+
 }



Mime
View raw message