
ar.com.dgarcia.javaspec.impl.model.SpecTest Maven / Gradle / Ivy
package ar.com.dgarcia.javaspec.impl.model;
/**
* This type represents a single test to be run in a spec
* Created by kfgodel on 12/07/14.
*/
public interface SpecTest extends SpecElement {
/**
* Returns the name that identifies this test
* @return The name declared by it
*/
String getName();
/**
* Indicates if this test has a pending status because of its declaration
* @return true if pending
*/
boolean isMarkedAsPending();
/**
* Returns the code that defines this test execution.
* Code may be null if this is a pending test
* @return The code to run for this test
*/
Runnable getTestCode();
/**
* Marks this test spec as pending.
* It will be listed but not executed
*/
void markAsPending();
/**
* Returns a code block to be run as the spec. It will execute before and after code blocks as well as test code.
* @return The code to execute as a complete spec test
*/
Runnable getSpecExecutionCode();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy