net.thucydides.core.steps
Class ExecutedStepDescription

Package class diagram package ExecutedStepDescription
java.lang.Object
  extended by net.thucydides.core.steps.ExecutedStepDescription
All Implemented Interfaces:
Cloneable

public class ExecutedStepDescription
extends Object
implements Cloneable

A description of a step executed during a Thucydides step run. Used in the reporting to generate user-readable names for the executed steps.


Constructor Summary
protected ExecutedStepDescription(Class<? extends Object> stepsClass, String name)
           
protected ExecutedStepDescription(Class<? extends Object> stepsClass, String name, boolean isAGroup)
           
protected ExecutedStepDescription(String name)
           
 
Method Summary
 ExecutedStepDescription clone()
           
 String getName()
           
 Class<? extends Object> getStepClass()
          The class of the step library being executed.
 Method getTestMethod()
           
 String getTitle()
          Turns a method into a human-readable title.
 boolean isAGroup()
           
static ExecutedStepDescription of(Class<? extends Object> stepsClass, String name)
          We might not have the test class provided (e.g.
 void setAGroup(boolean aGroup)
           
static ExecutedStepDescription withTitle(String name)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExecutedStepDescription

protected ExecutedStepDescription(Class<? extends Object> stepsClass,
                                  String name)

ExecutedStepDescription

protected ExecutedStepDescription(Class<? extends Object> stepsClass,
                                  String name,
                                  boolean isAGroup)

ExecutedStepDescription

protected ExecutedStepDescription(String name)
Method Detail

clone

public ExecutedStepDescription clone()
Overrides:
clone in class Object

getStepClass

public Class<? extends Object> getStepClass()
The class of the step library being executed.


getName

public String getName()

of

public static ExecutedStepDescription of(Class<? extends Object> stepsClass,
                                         String name)
We might not have the test class provided (e.g. at the end of a test).


withTitle

public static ExecutedStepDescription withTitle(String name)

isAGroup

public boolean isAGroup()

setAGroup

public void setAGroup(boolean aGroup)

getTestMethod

public Method getTestMethod()

getTitle

public String getTitle()
Turns a method into a human-readable title.



Copyright © 2011-2012 Wakaleo Consulting. All Rights Reserved.