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

de.qytera.qtaf.cucumber.helper.CucumberFeatureWrapperHelper Maven / Gradle / Ivy

There is a newer version: 0.2.23
Show newest version
package de.qytera.qtaf.cucumber.helper;

import de.qytera.qtaf.core.reflection.FieldHelper;
import io.cucumber.core.gherkin.Feature;
import io.cucumber.testng.FeatureWrapper;

/**
 * Helper class that provides methods to extract information from Cucumber feature wrapper objects.
 */
public class CucumberFeatureWrapperHelper {
    private CucumberFeatureWrapperHelper() {
    }

    /**
     * Get Feature object from FeatureWrapper object.
     *
     * @param featureWrapper FeatureWrapper object
     * @return Feature object
     */
    public static Feature getFeature(FeatureWrapper featureWrapper) {
        return (Feature) FieldHelper.getFieldValue(featureWrapper, "feature");
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy