@Test public void testGetSupportedFeatures() { Set<ProcessorFeature> expectedFeatures = new HashSet<>(); expectedFeatures.add(ProcessorFeature.MIRRORING); expectedFeatures.add(ProcessorFeature.REGION_BY_PERCENT); expectedFeatures.add(ProcessorFeature.REGION_BY_PIXELS); expectedFeatures.add(ProcessorFeature.ROTATION_ARBITRARY); expectedFeatures.add(ProcessorFeature.ROTATION_BY_90S); expectedFeatures.add(ProcessorFeature.SIZE_ABOVE_FULL); expectedFeatures.add(ProcessorFeature.SIZE_BY_FORCED_WIDTH_HEIGHT); expectedFeatures.add(ProcessorFeature.SIZE_BY_HEIGHT); expectedFeatures.add(ProcessorFeature.SIZE_BY_PERCENT); expectedFeatures.add(ProcessorFeature.SIZE_BY_WIDTH); expectedFeatures.add(ProcessorFeature.SIZE_BY_WIDTH_HEIGHT); assertEquals(expectedFeatures, instance.getSupportedFeatures(SourceFormat.JP2)); expectedFeatures = new HashSet<>(); assertEquals(expectedFeatures, instance.getSupportedFeatures(SourceFormat.UNKNOWN)); }
@Test public void testGetAvailableOutputFormatsForUnsupportedSourceFormat() { Set<OutputFormat> expectedFormats = new HashSet<>(); assertEquals(expectedFormats, instance.getAvailableOutputFormats(SourceFormat.UNKNOWN)); }