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

io.cucumber.junit.SkippedThrowable Maven / Gradle / Ivy

There is a newer version: 7.20.1
Show newest version
package io.cucumber.junit;

import static java.util.Locale.ROOT;

final class SkippedThrowable extends Throwable {

    private static final long serialVersionUID = 1L;

    SkippedThrowable(NotificationLevel scenarioOrStep) {
        super(String.format("This %s is skipped", scenarioOrStep.lowerCaseName()), null, false, false);
    }

    enum NotificationLevel {
        SCENARIO,
        STEP;

        String lowerCaseName() {
            return name().toLowerCase(ROOT);
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy