All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.cucumber.core.options.SnippetTypeParser Maven / Gradle / Ivy

There is a newer version: 7.18.0
Show newest version
package io.cucumber.core.options;

import io.cucumber.core.snippets.SnippetType;

public final class SnippetTypeParser {

    private SnippetTypeParser() {

    }

    public static SnippetType parseSnippetType(String nextArg) {
        SnippetType underscore;
        if ("underscore".equals(nextArg)) {
            underscore = SnippetType.UNDERSCORE;
        } else if ("camelcase".equals(nextArg)) {
            underscore = SnippetType.CAMELCASE;
        } else {
            throw new IllegalArgumentException("Unrecognized SnippetType " + nextArg);
        }
        return underscore;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy