Skip to content

Instantly share code, notes, and snippets.

@bradleybeddoes
Created May 14, 2010 04:06
Show Gist options
  • Save bradleybeddoes/400799 to your computer and use it in GitHub Desktop.
Save bradleybeddoes/400799 to your computer and use it in GitHub Desktop.
Condition not satisfied: task.errors.getFieldError('execute').code == 'task.validation.execute.controller.invalid.definition' | | | | | | | | | false | | | | 8 differences (84% similarity) | | | | task.validation.execute.(se--)r(vic)e(-).invalid.definition | | | | task.validation.execute.(cont)r(oll)e(r).invalid.definition | | | task.validation.execute.service.invalid.definition | | Field error in object 'fedreg.workflow.Task' on field 'execute': rejected value [{service=testService, method=testMethod, someTest=testVal}]; codes [fedreg.workflow.Task.execute.validator.error.fedreg.workflow.Task.execute,fedreg.workflow.Task.execute.validator.error.execute,fedreg.workflow.Task.execute.validator.error.java.util.Map,fedreg.workflow.Task.execute.validator.error,task.execute.validator.error.fedreg.workflow.Task.execute,task.execute.validator.error.execute,task.execute.validator.error.java.util.Map,task.execute.validator.error,fedreg.workflow.Task.execute.task.validation.execute.service.invalid.definition.fedreg.workflow.Task.execute,fedreg.workflow.Task.execute.task.validation.execute.service.invalid.definition.execute,fedreg.workflow.Task.execute.task.validation.execute.service.invalid.definition.java.util.Map,fedreg.workflow.Task.execute.task.validation.execute.service.invalid.definition,task.execute.task.validation.execute.service.invalid.definition.fedreg.workflow.Task.execute,task.execute.task.validation.execute.service.invalid.definition.execute,task.execute.task.validation.execute.service.invalid.definition.java.util.Map,task.execute.task.validation.execute.service.invalid.definition,task.validation.execute.service.invalid.definition.fedreg.workflow.Task.execute,task.validation.execute.service.invalid.definition.execute,task.validation.execute.service.invalid.definition.java.util.Map,task.validation.execute.service.invalid.definition]; arguments [execute,class fedreg.workflow.Task,{service=testService, method=testMethod, someTest=testVal},test]; default message [Property [{0}] of class [{1}] with value [{2}] does not pass custom validation] | org.springframework.validation.BeanPropertyBindingResult: 1 errors | Field error in object 'fedreg.workflow.Task' on field 'execute': rejected value [{service=testService, method=testMethod, someTest=testVal}]; codes [fedreg.workflow.Task.execute.validator.error.fedreg.workflow.Task.execute,fedreg.workflow.Task.execute.validator.error.execute,fedreg.workflow.Task.execute.validator.error.java.util.Map,fedreg.workflow.Task.execute.validator.error,task.execute.validator.error.fedreg.workflow.Task.execute,task.execute.validator.error.execute,task.execute.validator.error.java.util.Map,task.execute.validator.error,fedreg.workflow.Task.execute.task.validation.execute.service.invalid.definition.fedreg.workflow.Task.execute,fedreg.workflow.Task.execute.task.validation.execute.service.invalid.definition.execute,fedreg.workflow.Task.execute.task.validation.execute.service.invalid.definition.java.util.Map,fedreg.workflow.Task.execute.task.validation.execute.service.invalid.definition,task.execute.task.validation.execute.service.invalid.definition.fedreg.workflow.Task.execute,task.execute.task.validation.execute.service.invalid.definition.execute,task.execute.task.validation.execute.service.invalid.definition.java.util.Map,task.execute.task.validation.execute.service.invalid.definition,task.validation.execute.service.invalid.definition.fedreg.workflow.Task.execute,task.validation.execute.service.invalid.definition.execute,task.validation.execute.service.invalid.definition.java.util.Map,task.validation.execute.service.invalid.definition]; arguments [execute,class fedreg.workflow.Task,{service=testService, method=testMethod, someTest=testVal},test]; default message [Property [{0}] of class [{1}] with value [{2}] does not pass custom validation] fedreg.workflow.Task : null
junit.framework.AssertionFailedError: Condition not satisfied:
task.errors.getFieldError('execute').code == 'task.validation.execute.controller.invalid.definition'
| | | | |
| | | | false
| | | | 8 differences (84% similarity)
| | | | task.validation.execute.(se--)r(vic)e(-).invalid.definition
| | | | task.validation.execute.(cont)r(oll)e(r).invalid.definition
| | | task.validation.execute.service.invalid.definition
| | Field error in object 'fedreg.workflow.Task' on field 'execute': rejected value [{service=testService, method=testMethod, someTest=testVal}]; codes [fedreg.workflow.Task.execute.validator.error.fedreg.workflow.Task.execute,fedreg.workflow.Task.execute.validator.error.execute,fedreg.workflow.Task.execute.validator.error.java.util.Map,fedreg.workflow.Task.execute.validator.error,task.execute.validator.error.fedreg.workflow.Task.execute,task.execute.validator.error.execute,task.execute.validator.error.java.util.Map,task.execute.validator.error,fedreg.workflow.Task.execute.task.validation.execute.service.invalid.definition.fedreg.workflow.Task.execute,fedreg.workflow.Task.execute.task.validation.execute.service.invalid.definition.execute,fedreg.workflow.Task.execute.task.validation.execute.service.invalid.definition.java.util.Map,fedreg.workflow.Task.execute.task.validation.execute.service.invalid.definition,task.execute.task.validation.execute.service.invalid.definition.fedreg.workflow.Task.execute,task.execute.task.validation.execute.service.invalid.definition.execute,task.execute.task.validation.execute.service.invalid.definition.java.util.Map,task.execute.task.validation.execute.service.invalid.definition,task.validation.execute.service.invalid.definition.fedreg.workflow.Task.execute,task.validation.execute.service.invalid.definition.execute,task.validation.execute.service.invalid.definition.java.util.Map,task.validation.execute.service.invalid.definition]; arguments [execute,class fedreg.workflow.Task,{service=testService, method=testMethod, someTest=testVal},test]; default message [Property [{0}] of class [{1}] with value [{2}] does not pass custom validation]
| org.springframework.validation.BeanPropertyBindingResult: 1 errors
| Field error in object 'fedreg.workflow.Task' on field 'execute': rejected value [{service=testService, method=testMethod, someTest=testVal}]; codes [fedreg.workflow.Task.execute.validator.error.fedreg.workflow.Task.execute,fedreg.workflow.Task.execute.validator.error.execute,fedreg.workflow.Task.execute.validator.error.java.util.Map,fedreg.workflow.Task.execute.validator.error,task.execute.validator.error.fedreg.workflow.Task.execute,task.execute.validator.error.execute,task.execute.validator.error.java.util.Map,task.execute.validator.error,fedreg.workflow.Task.execute.task.validation.execute.service.invalid.definition.fedreg.workflow.Task.execute,fedreg.workflow.Task.execute.task.validation.execute.service.invalid.definition.execute,fedreg.workflow.Task.execute.task.validation.execute.service.invalid.definition.java.util.Map,fedreg.workflow.Task.execute.task.validation.execute.service.invalid.definition,task.execute.task.validation.execute.service.invalid.definition.fedreg.workflow.Task.execute,task.execute.task.validation.execute.service.invalid.definition.execute,task.execute.task.validation.execute.service.invalid.definition.java.util.Map,task.execute.task.validation.execute.service.invalid.definition,task.validation.execute.service.invalid.definition.fedreg.workflow.Task.execute,task.validation.execute.service.invalid.definition.execute,task.validation.execute.service.invalid.definition.java.util.Map,task.validation.execute.service.invalid.definition]; arguments [execute,class fedreg.workflow.Task,{service=testService, method=testMethod, someTest=testVal},test]; default message [Property [{0}] of class [{1}] with value [{2}] does not pass custom validation]
fedreg.workflow.Task : null
at fedreg.workflow.TaskSpec.Ensure executable task defining service, method and additional params is invalid(TaskSpec.groovy:273)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment