
ar.com.dgarcia.javaspec.impl.model.TestContextDefinition Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-spec Show documentation
Show all versions of java-spec Show documentation
Junit testing extension to allow specs expressibility
The newest version!
package ar.com.dgarcia.javaspec.impl.model;
import ar.com.dgarcia.javaspec.api.contexts.TestContext;
import java.util.Optional;
import java.util.function.Supplier;
/**
* This type represents the definition of a test context
* Created by kfgodel on 20/07/14.
*/
public interface TestContextDefinition extends TestContext {
/**
* Defines the parent context of this instance.
Parent context will be used when a definition is not present on current context
* @param parentDefinition The parent context
*/
void setParentDefinition(TestContextDefinition parentDefinition);
/**
* The parent context of this instance. NullContextDefinition is the root parent
*/
TestContextDefinition getParentDefinition();
/**
* Returns the definition for the named variable in this context
* @param variableName The name that identifies the variable
* @return The variable definition or null if there's none in this context
*/
Optional> getDefinitionFor(String variableName);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy