incubator-bval-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mben...@apache.org
Subject svn commit: r1031840 - /incubator/bval/sandbox/lang3-work/bval-jsr303/src/test/java/org/apache/bval/jsr303/ExceptionsContractTest.java
Date Fri, 05 Nov 2010 22:01:51 GMT
Author: mbenson
Date: Fri Nov  5 22:01:51 2010
New Revision: 1031840

URL: http://svn.apache.org/viewvc?rev=1031840&view=rev
Log:
make copied test method test the right condition

Modified:
    incubator/bval/sandbox/lang3-work/bval-jsr303/src/test/java/org/apache/bval/jsr303/ExceptionsContractTest.java

Modified: incubator/bval/sandbox/lang3-work/bval-jsr303/src/test/java/org/apache/bval/jsr303/ExceptionsContractTest.java
URL: http://svn.apache.org/viewvc/incubator/bval/sandbox/lang3-work/bval-jsr303/src/test/java/org/apache/bval/jsr303/ExceptionsContractTest.java?rev=1031840&r1=1031839&r2=1031840&view=diff
==============================================================================
--- incubator/bval/sandbox/lang3-work/bval-jsr303/src/test/java/org/apache/bval/jsr303/ExceptionsContractTest.java
(original)
+++ incubator/bval/sandbox/lang3-work/bval-jsr303/src/test/java/org/apache/bval/jsr303/ExceptionsContractTest.java
Fri Nov  5 22:01:51 2010
@@ -212,15 +212,13 @@ public class ExceptionsContractTest exte
      */
     public void testValidateIncompatibleValue() {
         try {
-            Class<?>[] groups = null;
-            validator.validateValue(Person.class, "name", 666, groups);
+            validator.validateValue(Person.class, "name", 666);
             Assert.fail("No exception thrown when passing Integer for string value");
         } catch (IllegalArgumentException e) {
             // Correct
         }
         try {
-            Class<?>[] groups = null;
-            validator.validateValue(Person.class, "age", null, groups);
+            validator.validateValue(Person.class, "age", null);
             Assert.fail("No exception thrown when passing null for primitive value");
         } catch (IllegalArgumentException e) {
             // Correct



Mime
View raw message