tw.teddysoft.ezspec.keyword.Examples Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ezspec-core Show documentation
Show all versions of ezspec-core Show documentation
ezspec is a framework for adopting Gherkin in Java testing.
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