|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jwalk.out.Report org.jwalk.out.ProtocolReport org.jwalk.out.StateReport
public class StateReport
StateReport is a report on the test class's high-level design states. A StateReport is responsible for formatting the data generated by a StateSpaceWalker, which estimated the high-level design states of the test class. It also provides direct access to the test class and its constructors and methods, optionally offering a subset of methods which are state predicates. It also provides access to the names of the discovered states, the state cover (the test sequences that reach every state) and the maximum number of high-level states, estimated from the nubmer of independent state predicates.
Field Summary |
---|
Fields inherited from class org.jwalk.out.Report |
---|
edition, walker |
Constructor Summary | |
---|---|
StateReport(StateSpaceWalker walker)
Creates a StateReport. |
Method Summary | |
---|---|
protected java.lang.String |
banner()
Creates a text banner to use at the start of the report. |
int |
countMaxStates()
Counts the maximum possible number of high-level design states. |
java.lang.String |
getContent()
Returns the content of this StateSpaceReport as formatted text. |
StateSpaceWalker |
getJWalker()
Return the StateSpaceWalker which was the source of this report. |
java.util.Map<java.lang.String,TestSequence> |
getStateCover()
Returns the map from state names to state cover sequences. |
java.util.List<java.lang.String> |
getStateNames()
Returns a list of the names of the discovered states. |
java.util.List<java.lang.reflect.Method> |
getStatePredicates()
Returns a list of the state predicates of the test class. |
boolean |
hasMissingStates()
Reports if there are still missing states after state exploration. |
protected java.lang.String |
toString(TestSequence sequence)
Returns a formatted version of a TestSequence. |
Methods inherited from class org.jwalk.out.ProtocolReport |
---|
getConstants, getConstructors, getMethods, getTestClass, isAbstract, toString, toString, toString |
Methods inherited from class org.jwalk.out.Report |
---|
getEdition, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public StateReport(StateSpaceWalker walker)
walker
- the StateSpaceWalker used to explore the test class.Method Detail |
---|
public StateSpaceWalker getJWalker()
getJWalker
in class ProtocolReport
public java.util.Map<java.lang.String,TestSequence> getStateCover()
public java.util.List<java.lang.String> getStateNames()
public java.util.List<java.lang.reflect.Method> getStatePredicates()
public int countMaxStates()
public boolean hasMissingStates()
protected java.lang.String toString(TestSequence sequence)
sequence
- the TestSequence to format
protected java.lang.String banner()
banner
in class ProtocolReport
public java.lang.String getContent()
getContent
in class ProtocolReport
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |