@Test public void test_thumbnailGeneration() { final List<ProcessingJobSubTask> subTasks = SubTaskBuilder.thumbnailGeneration(); assertEquals (2, subTasks.size()); assertEquals (ProcessingJobSubTaskType.GENERATE_THUMBNAIL, subTasks.get(0).getTaskType()); assertEquals (ProcessingJobSubTaskType.GENERATE_THUMBNAIL, subTasks.get(1).getTaskType()); assertEquals ((Integer)ThumbnailType.MEDIUM.getHeight(), subTasks.get(0).getConfig().getThumbnailConfig().getHeight()); assertEquals ((Integer)ThumbnailType.MEDIUM.getWidth(), subTasks.get(0).getConfig().getThumbnailConfig().getWidth()); assertEquals ((Integer)ThumbnailType.LARGE.getHeight(), subTasks.get(1).getConfig().getThumbnailConfig().getHeight()); assertEquals ((Integer)ThumbnailType.LARGE.getWidth(), subTasks.get(1).getConfig().getThumbnailConfig().getWidth()); }
public static final List<ProcessingJobSubTask> thumbnailGeneration() { return Arrays.asList( new ProcessingJobSubTask(ProcessingJobSubTaskType.GENERATE_THUMBNAIL, new GenericSubTaskConfiguration(new ThumbnailConfig(ThumbnailType.MEDIUM.getWidth(), ThumbnailType.MEDIUM.getHeight()))), new ProcessingJobSubTask(ProcessingJobSubTaskType.GENERATE_THUMBNAIL, new GenericSubTaskConfiguration(new ThumbnailConfig(ThumbnailType.LARGE.getWidth(), ThumbnailType.LARGE.getHeight()))) ); }
SubTaskBuilder { public static final List<ProcessingJobSubTask> thumbnailGeneration() { return Arrays.asList( new ProcessingJobSubTask(ProcessingJobSubTaskType.GENERATE_THUMBNAIL, new GenericSubTaskConfiguration(new ThumbnailConfig(ThumbnailType.MEDIUM.getWidth(), ThumbnailType.MEDIUM.getHeight()))), new ProcessingJobSubTask(ProcessingJobSubTaskType.GENERATE_THUMBNAIL, new GenericSubTaskConfiguration(new ThumbnailConfig(ThumbnailType.LARGE.getWidth(), ThumbnailType.LARGE.getHeight()))) ); } }
SubTaskBuilder { public static final List<ProcessingJobSubTask> thumbnailGeneration() { return Arrays.asList( new ProcessingJobSubTask(ProcessingJobSubTaskType.GENERATE_THUMBNAIL, new GenericSubTaskConfiguration(new ThumbnailConfig(ThumbnailType.MEDIUM.getWidth(), ThumbnailType.MEDIUM.getHeight()))), new ProcessingJobSubTask(ProcessingJobSubTaskType.GENERATE_THUMBNAIL, new GenericSubTaskConfiguration(new ThumbnailConfig(ThumbnailType.LARGE.getWidth(), ThumbnailType.LARGE.getHeight()))) ); }  }
SubTaskBuilder { public static final List<ProcessingJobSubTask> thumbnailGeneration() { return Arrays.asList( new ProcessingJobSubTask(ProcessingJobSubTaskType.GENERATE_THUMBNAIL, new GenericSubTaskConfiguration(new ThumbnailConfig(ThumbnailType.MEDIUM.getWidth(), ThumbnailType.MEDIUM.getHeight()))), new ProcessingJobSubTask(ProcessingJobSubTaskType.GENERATE_THUMBNAIL, new GenericSubTaskConfiguration(new ThumbnailConfig(ThumbnailType.LARGE.getWidth(), ThumbnailType.LARGE.getHeight()))) ); }  static final List<ProcessingJobSubTask> thumbnailGeneration(); static final List<ProcessingJobSubTask> metaExtraction(); static final List<ProcessingJobSubTask> colourExtraction(); }
SubTaskBuilder { public static final List<ProcessingJobSubTask> thumbnailGeneration() { return Arrays.asList( new ProcessingJobSubTask(ProcessingJobSubTaskType.GENERATE_THUMBNAIL, new GenericSubTaskConfiguration(new ThumbnailConfig(ThumbnailType.MEDIUM.getWidth(), ThumbnailType.MEDIUM.getHeight()))), new ProcessingJobSubTask(ProcessingJobSubTaskType.GENERATE_THUMBNAIL, new GenericSubTaskConfiguration(new ThumbnailConfig(ThumbnailType.LARGE.getWidth(), ThumbnailType.LARGE.getHeight()))) ); }  static final List<ProcessingJobSubTask> thumbnailGeneration(); static final List<ProcessingJobSubTask> metaExtraction(); static final List<ProcessingJobSubTask> colourExtraction();  }