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

com.tngtech.jgiven.CurrentStep Maven / Gradle / Ivy

There is a newer version: 1.3.1
Show newest version
package com.tngtech.jgiven;

import com.tngtech.jgiven.attachment.Attachment;

/**
 * This interface can be injected into a stage by using the {@link com.tngtech.jgiven.annotation.ScenarioState}
 * annotation. It provides programmatic access to the current executed step.

 * @since 0.7.0
 */
public interface CurrentStep {

    /**
     * Adds an attachment to the current step
     * 
     * @param attachment an attachment to add
     */
    void addAttachment( Attachment attachment );

    /**
     * Set the extended description of the current step
     * 
     * @param extendedDescription the extended description
     * @see com.tngtech.jgiven.annotation.ExtendedDescription                           
     */
    void setExtendedDescription( String extendedDescription );

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy