Permalink
Browse files

change on validation of upload size limit

  • Loading branch information...
1 parent 230cdef commit 50f82c3d775107466a83cd3665daa709f4dff388 @marceloemanoel marceloemanoel committed Oct 16, 2012
@@ -36,6 +36,7 @@
import br.com.caelum.vraptor.http.InvalidParameterException;
import br.com.caelum.vraptor.http.MutableRequest;
import br.com.caelum.vraptor.resource.ResourceMethod;
+import br.com.caelum.vraptor.validator.I18nMessage;
import br.com.caelum.vraptor.validator.Validations;
/**
@@ -240,7 +241,7 @@ public void shouldValidateWhenSizeLimitExceededExceptionOccurs() throws Exceptio
interceptor.intercept(stack, method, instance);
- verify(validator).checking(any(Validations.class));
+ verify(validator).add(any(I18nMessage.class));
}
@Test

0 comments on commit 50f82c3

Please sign in to comment.