@Test public void testPriorityInvalid() { tested.setPriority(new Priority(PRIORITY_INVALID)); Set<ConstraintViolation<UserTaskExecutionSet>> violations = this.validator.validate(tested); assertEquals(1, violations.size()); }
public void setPriority(Priority priority) { this.priority = priority; }
UserTaskExecutionSet implements BaseUserTaskExecutionSet { public void setPriority(Priority priority) { this.priority = priority; } }
UserTaskExecutionSet implements BaseUserTaskExecutionSet { public void setPriority(Priority priority) { this.priority = priority; } UserTaskExecutionSet();  UserTaskExecutionSet(final @MapsTo("taskName") TaskName taskName,
                                final @MapsTo("actors") Actors actors,
                                final @MapsTo("groupid") Groupid groupid,
                                final @MapsTo("assignmentsinfo") AssignmentsInfo assignmentsinfo,
                                final @MapsTo("notificationsInfo") NotificationsInfo notificationsInfo,
                                final @MapsTo("reassignmentsInfo") ReassignmentsInfo reassignmentsInfo,
                                final @MapsTo("isAsync") IsAsync isAsync,
                                final @MapsTo("skippable") Skippable skippable,
                                final @MapsTo("priority") Priority priority,
                                final @MapsTo("subject") Subject subject,
                                final @MapsTo("description") Description description,
                                final @MapsTo("createdBy") CreatedBy createdBy,
                                final @MapsTo("adHocAutostart") AdHocAutostart adHocAutostart,
                                final @MapsTo("isMultipleInstance") IsMultipleInstance isMultipleInstance,
                                final @MapsTo("multipleInstanceExecutionMode") MultipleInstanceExecutionMode multipleInstanceExecutionMode,
                                final @MapsTo("multipleInstanceCollectionInput") MultipleInstanceCollectionInput multipleInstanceCollectionInput,
                                final @MapsTo("multipleInstanceDataInput") MultipleInstanceDataInput multipleInstanceDataInput,
                                final @MapsTo("multipleInstanceCollectionOutput") MultipleInstanceCollectionOutput multipleInstanceCollectionOutput,
                                final @MapsTo("multipleInstanceDataOutput") MultipleInstanceDataOutput multipleInstanceDataOutput,
                                final @MapsTo("multipleInstanceCompletionCondition") MultipleInstanceCompletionCondition multipleInstanceCompletionCondition,
                                final @MapsTo("onEntryAction") OnEntryAction onEntryAction,
                                final @MapsTo("onExitAction") OnExitAction onExitAction,
                                final @MapsTo("content") Content content,
                                final @MapsTo("slaDueDate") SLADueDate slaDueDate); }
UserTaskExecutionSet implements BaseUserTaskExecutionSet { public void setPriority(Priority priority) { this.priority = priority; } UserTaskExecutionSet();  UserTaskExecutionSet(final @MapsTo("taskName") TaskName taskName,
                                final @MapsTo("actors") Actors actors,
                                final @MapsTo("groupid") Groupid groupid,
                                final @MapsTo("assignmentsinfo") AssignmentsInfo assignmentsinfo,
                                final @MapsTo("notificationsInfo") NotificationsInfo notificationsInfo,
                                final @MapsTo("reassignmentsInfo") ReassignmentsInfo reassignmentsInfo,
                                final @MapsTo("isAsync") IsAsync isAsync,
                                final @MapsTo("skippable") Skippable skippable,
                                final @MapsTo("priority") Priority priority,
                                final @MapsTo("subject") Subject subject,
                                final @MapsTo("description") Description description,
                                final @MapsTo("createdBy") CreatedBy createdBy,
                                final @MapsTo("adHocAutostart") AdHocAutostart adHocAutostart,
                                final @MapsTo("isMultipleInstance") IsMultipleInstance isMultipleInstance,
                                final @MapsTo("multipleInstanceExecutionMode") MultipleInstanceExecutionMode multipleInstanceExecutionMode,
                                final @MapsTo("multipleInstanceCollectionInput") MultipleInstanceCollectionInput multipleInstanceCollectionInput,
                                final @MapsTo("multipleInstanceDataInput") MultipleInstanceDataInput multipleInstanceDataInput,
                                final @MapsTo("multipleInstanceCollectionOutput") MultipleInstanceCollectionOutput multipleInstanceCollectionOutput,
                                final @MapsTo("multipleInstanceDataOutput") MultipleInstanceDataOutput multipleInstanceDataOutput,
                                final @MapsTo("multipleInstanceCompletionCondition") MultipleInstanceCompletionCondition multipleInstanceCompletionCondition,
                                final @MapsTo("onEntryAction") OnEntryAction onEntryAction,
                                final @MapsTo("onExitAction") OnExitAction onExitAction,
                                final @MapsTo("content") Content content,
                                final @MapsTo("slaDueDate") SLADueDate slaDueDate); @Override TaskName getTaskName(); void setTaskName(final TaskName taskName); @Override Actors getActors(); void setActors(final Actors actors); @Override Groupid getGroupid(); void setGroupid(final Groupid groupid); @Override AssignmentsInfo getAssignmentsinfo(); void setAssignmentsinfo(final AssignmentsInfo assignmentsinfo); @Override NotificationsInfo getNotificationsInfo(); void setNotificationsInfo(final NotificationsInfo notificationsInfo); @Override ReassignmentsInfo getReassignmentsInfo(); void setReassignmentsInfo(final ReassignmentsInfo reassignmentsInfo); @Override IsAsync getIsAsync(); void setIsAsync(IsAsync isAsync); @Override Skippable getSkippable(); void setSkippable(Skippable skippable); @Override Priority getPriority(); void setPriority(Priority priority); @Override Subject getSubject(); void setSubject(Subject subject); @Override Description getDescription(); void setDescription(Description description); @Override CreatedBy getCreatedBy(); void setCreatedBy(CreatedBy createdBy); @Override AdHocAutostart getAdHocAutostart(); void setAdHocAutostart(AdHocAutostart adHocAutostart); @Override IsMultipleInstance getIsMultipleInstance(); @Override MultipleInstanceExecutionMode getMultipleInstanceExecutionMode(); void setMultipleInstanceExecutionMode(MultipleInstanceExecutionMode multipleInstanceExecutionMode); void setIsMultipleInstance(IsMultipleInstance isMultipleInstance); @Override MultipleInstanceCollectionInput getMultipleInstanceCollectionInput(); void setMultipleInstanceCollectionInput(MultipleInstanceCollectionInput multipleInstanceCollectionInput); @Override MultipleInstanceDataInput getMultipleInstanceDataInput(); void setMultipleInstanceDataInput(MultipleInstanceDataInput multipleInstanceDataInput); @Override MultipleInstanceCollectionOutput getMultipleInstanceCollectionOutput(); void setMultipleInstanceCollectionOutput(MultipleInstanceCollectionOutput multipleInstanceCollectionOutput); @Override MultipleInstanceDataOutput getMultipleInstanceDataOutput(); void setMultipleInstanceDataOutput(MultipleInstanceDataOutput multipleInstanceDataOutput); @Override MultipleInstanceCompletionCondition getMultipleInstanceCompletionCondition(); void setMultipleInstanceCompletionCondition(MultipleInstanceCompletionCondition multipleInstanceCompletionCondition); @Override OnEntryAction getOnEntryAction(); void setOnEntryAction(OnEntryAction onEntryAction); @Override OnExitAction getOnExitAction(); void setOnExitAction(OnExitAction onExitAction); @Override Content getContent(); void setContent(Content content); @Override SLADueDate getSlaDueDate(); void setSlaDueDate(SLADueDate slaDueDate); @Override int hashCode(); @Override boolean equals(Object o); }
UserTaskExecutionSet implements BaseUserTaskExecutionSet { public void setPriority(Priority priority) { this.priority = priority; } UserTaskExecutionSet();  UserTaskExecutionSet(final @MapsTo("taskName") TaskName taskName,
                                final @MapsTo("actors") Actors actors,
                                final @MapsTo("groupid") Groupid groupid,
                                final @MapsTo("assignmentsinfo") AssignmentsInfo assignmentsinfo,
                                final @MapsTo("notificationsInfo") NotificationsInfo notificationsInfo,
                                final @MapsTo("reassignmentsInfo") ReassignmentsInfo reassignmentsInfo,
                                final @MapsTo("isAsync") IsAsync isAsync,
                                final @MapsTo("skippable") Skippable skippable,
                                final @MapsTo("priority") Priority priority,
                                final @MapsTo("subject") Subject subject,
                                final @MapsTo("description") Description description,
                                final @MapsTo("createdBy") CreatedBy createdBy,
                                final @MapsTo("adHocAutostart") AdHocAutostart adHocAutostart,
                                final @MapsTo("isMultipleInstance") IsMultipleInstance isMultipleInstance,
                                final @MapsTo("multipleInstanceExecutionMode") MultipleInstanceExecutionMode multipleInstanceExecutionMode,
                                final @MapsTo("multipleInstanceCollectionInput") MultipleInstanceCollectionInput multipleInstanceCollectionInput,
                                final @MapsTo("multipleInstanceDataInput") MultipleInstanceDataInput multipleInstanceDataInput,
                                final @MapsTo("multipleInstanceCollectionOutput") MultipleInstanceCollectionOutput multipleInstanceCollectionOutput,
                                final @MapsTo("multipleInstanceDataOutput") MultipleInstanceDataOutput multipleInstanceDataOutput,
                                final @MapsTo("multipleInstanceCompletionCondition") MultipleInstanceCompletionCondition multipleInstanceCompletionCondition,
                                final @MapsTo("onEntryAction") OnEntryAction onEntryAction,
                                final @MapsTo("onExitAction") OnExitAction onExitAction,
                                final @MapsTo("content") Content content,
                                final @MapsTo("slaDueDate") SLADueDate slaDueDate); @Override TaskName getTaskName(); void setTaskName(final TaskName taskName); @Override Actors getActors(); void setActors(final Actors actors); @Override Groupid getGroupid(); void setGroupid(final Groupid groupid); @Override AssignmentsInfo getAssignmentsinfo(); void setAssignmentsinfo(final AssignmentsInfo assignmentsinfo); @Override NotificationsInfo getNotificationsInfo(); void setNotificationsInfo(final NotificationsInfo notificationsInfo); @Override ReassignmentsInfo getReassignmentsInfo(); void setReassignmentsInfo(final ReassignmentsInfo reassignmentsInfo); @Override IsAsync getIsAsync(); void setIsAsync(IsAsync isAsync); @Override Skippable getSkippable(); void setSkippable(Skippable skippable); @Override Priority getPriority(); void setPriority(Priority priority); @Override Subject getSubject(); void setSubject(Subject subject); @Override Description getDescription(); void setDescription(Description description); @Override CreatedBy getCreatedBy(); void setCreatedBy(CreatedBy createdBy); @Override AdHocAutostart getAdHocAutostart(); void setAdHocAutostart(AdHocAutostart adHocAutostart); @Override IsMultipleInstance getIsMultipleInstance(); @Override MultipleInstanceExecutionMode getMultipleInstanceExecutionMode(); void setMultipleInstanceExecutionMode(MultipleInstanceExecutionMode multipleInstanceExecutionMode); void setIsMultipleInstance(IsMultipleInstance isMultipleInstance); @Override MultipleInstanceCollectionInput getMultipleInstanceCollectionInput(); void setMultipleInstanceCollectionInput(MultipleInstanceCollectionInput multipleInstanceCollectionInput); @Override MultipleInstanceDataInput getMultipleInstanceDataInput(); void setMultipleInstanceDataInput(MultipleInstanceDataInput multipleInstanceDataInput); @Override MultipleInstanceCollectionOutput getMultipleInstanceCollectionOutput(); void setMultipleInstanceCollectionOutput(MultipleInstanceCollectionOutput multipleInstanceCollectionOutput); @Override MultipleInstanceDataOutput getMultipleInstanceDataOutput(); void setMultipleInstanceDataOutput(MultipleInstanceDataOutput multipleInstanceDataOutput); @Override MultipleInstanceCompletionCondition getMultipleInstanceCompletionCondition(); void setMultipleInstanceCompletionCondition(MultipleInstanceCompletionCondition multipleInstanceCompletionCondition); @Override OnEntryAction getOnEntryAction(); void setOnEntryAction(OnEntryAction onEntryAction); @Override OnExitAction getOnExitAction(); void setOnExitAction(OnExitAction onExitAction); @Override Content getContent(); void setContent(Content content); @Override SLADueDate getSlaDueDate(); void setSlaDueDate(SLADueDate slaDueDate); @Override int hashCode(); @Override boolean equals(Object o);  }