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

tw.teddysoft.ezspec.keyword.Examples Maven / Gradle / Ivy

The newest version!
package tw.teddysoft.ezspec.keyword;


import tw.teddysoft.ezspec.keyword.table.Table;

import java.util.Objects;

import static java.lang.String.format;

/**
 * {@code Examples} is an interface for representing Gherkin examples.
 *
 * @author Teddy Chen
 * @since 1.0
 */
public interface Examples {

    static Example New(String tableContent) {
        Objects.requireNonNull(tableContent, "table content");

        return new Example(tableContent);
    }

    String getName();

    String getDescription();

    Table getTable();

    default Example getExample(){
        return new Example(getName(), getDescription(), getTable());
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy