incubator-bval-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r959911 - /incubator/bval/trunk/bval-guice/src/test/java/org/apache/bval/guice/DummyCountryDao.java
Date Fri, 02 Jul 2010 08:08:00 GMT
Author: simonetripodi
Date: Fri Jul  2 08:07:59 2010
New Revision: 959911

URL: http://svn.apache.org/viewvc?rev=959911&view=rev
Log:
added fake method to update a Country entity

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

Modified: incubator/bval/trunk/bval-guice/src/test/java/org/apache/bval/guice/DummyCountryDao.java
URL: http://svn.apache.org/viewvc/incubator/bval/trunk/bval-guice/src/test/java/org/apache/bval/guice/DummyCountryDao.java?rev=959911&r1=959910&r2=959911&view=diff
==============================================================================
--- incubator/bval/trunk/bval-guice/src/test/java/org/apache/bval/guice/DummyCountryDao.java
(original)
+++ incubator/bval/trunk/bval-guice/src/test/java/org/apache/bval/guice/DummyCountryDao.java
Fri Jul  2 08:07:59 2010
@@ -16,6 +16,7 @@
  */
 package org.apache.bval.guice;
 
+import javax.validation.Valid;
 import javax.validation.constraints.NotNull;
 import javax.validation.constraints.Size;
 
@@ -43,4 +44,12 @@ public class DummyCountryDao {
         return country;
     }
 
+    @Validate(
+            groups = { Update.class },
+            rethrowExceptionsAs = DummyException.class
+    )
+    public int updateCountry(@Valid Country country) {
+        return 0;
+    }
+
 }



Mime
View raw message