You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bval.apache.org by mb...@apache.org on 2010/11/05 23:01:51 UTC

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

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