@Test public void testExecutionSetNameInvalid() { tested.getExecutionSet().setTaskName(new TaskName(NAME_INVALID)); Set<ConstraintViolation<UserTask>> violations = this.validator.validate(tested); assertEquals(1, violations.size()); }
@Override public UserTaskExecutionSet getExecutionSet() { return executionSet; }
UserTask extends BaseUserTask<UserTaskExecutionSet> { @Override public UserTaskExecutionSet getExecutionSet() { return executionSet; } }
UserTask extends BaseUserTask<UserTaskExecutionSet> { @Override public UserTaskExecutionSet getExecutionSet() { return executionSet; } UserTask();  UserTask(final @MapsTo("general") TaskGeneralSet general,
                    final @MapsTo("executionSet") UserTaskExecutionSet executionSet,
                    final @MapsTo("backgroundSet") BackgroundSet backgroundSet,
                    final @MapsTo("fontSet") FontSet fontSet,
                    final @MapsTo("dimensionsSet") RectangleDimensionsSet dimensionsSet,
                    final @MapsTo("simulationSet") SimulationSet simulationSet,
                    final @MapsTo("taskType") TaskType taskType); }
UserTask extends BaseUserTask<UserTaskExecutionSet> { @Override public UserTaskExecutionSet getExecutionSet() { return executionSet; } UserTask();  UserTask(final @MapsTo("general") TaskGeneralSet general,
                    final @MapsTo("executionSet") UserTaskExecutionSet executionSet,
                    final @MapsTo("backgroundSet") BackgroundSet backgroundSet,
                    final @MapsTo("fontSet") FontSet fontSet,
                    final @MapsTo("dimensionsSet") RectangleDimensionsSet dimensionsSet,
                    final @MapsTo("simulationSet") SimulationSet simulationSet,
                    final @MapsTo("taskType") TaskType taskType); @Override UserTaskExecutionSet getExecutionSet(); @Override void setExecutionSet(final UserTaskExecutionSet executionSet); @Override int hashCode(); @Override boolean equals(Object o); }
UserTask extends BaseUserTask<UserTaskExecutionSet> { @Override public UserTaskExecutionSet getExecutionSet() { return executionSet; } UserTask();  UserTask(final @MapsTo("general") TaskGeneralSet general,
                    final @MapsTo("executionSet") UserTaskExecutionSet executionSet,
                    final @MapsTo("backgroundSet") BackgroundSet backgroundSet,
                    final @MapsTo("fontSet") FontSet fontSet,
                    final @MapsTo("dimensionsSet") RectangleDimensionsSet dimensionsSet,
                    final @MapsTo("simulationSet") SimulationSet simulationSet,
                    final @MapsTo("taskType") TaskType taskType); @Override UserTaskExecutionSet getExecutionSet(); @Override void setExecutionSet(final UserTaskExecutionSet executionSet); @Override int hashCode(); @Override boolean equals(Object o);  }