Examples of SupportedImageType


Examples of com.rf1m.image2css.domain.SupportedImageType

    @Test
    public void convertStringImageTypeArgumentToEnumTypeShouldConvertStringValueToEnumValueRegardlessOfCase() {
        final String optionValueGif = "GiF";

        final SupportedImageType result =
            commandLineParametersParser.convertStringImageTypeArgumentToEnumType(optionValueGif);

        assertThat(result, is(SupportedImageType.gif));
    }
View Full Code Here

Examples of com.rf1m.image2css.domain.SupportedImageType

        return isNotBlank(extension) ? this.isSupported(extension) : false;
  }

    protected boolean isSupported(final String extension) {
        try{
            final SupportedImageType supportedImageType = valueOf(extension);
            return supportedTypes.contains(supportedImageType);
        }catch(final IllegalArgumentException e){
            return false;
        }
    }
View Full Code Here

Examples of com.rf1m.image2css.domain.SupportedImageType

    protected Set<SupportedImageType> extractImageTypesFromOption(final CommandLine commandLine, final String option) {
        final Set<SupportedImageType> result = this.objectFactory.newMutableSet();
        final String[] optionValues = this.determineIncludedImageTypes(commandLine.getOptionValues(option));

        for(final String optionValue : optionValues) {
            final SupportedImageType supportedImageType = this.convertStringImageTypeArgumentToEnumType(optionValue);
            result.add(supportedImageType);
        }

        return result;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.