public class Storyboard
extends java.lang.Object
StoryboardImpl| Constructor and Description |
|---|
Storyboard()
Constructor for StoryPage, that creates a Storyboard by calling its
standard constructor, in order to use the necessary functionalities
of the Storyboard class.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(java.lang.String string)
Adds a string to the current step of the storyboard.
|
void |
addClassDiagram(ClassModel model)
Adds a diagram of an classmodel to the storyboard.
|
void |
addCode()
Adds a portion of code, to the storyboard, that has been marked beforehand.
|
void |
addImage(java.lang.String imageFile)
Adds an image to the current step of the storyboard.
|
void |
addObjectDiagram(java.lang.Object... elems)
Adds an object diagram to the storyboard, that contains the given objects.
|
void |
addObjectDiagramOnlyWith(java.lang.Object... elems)
Adds an object diagram to the storyboard, that only consists of the given objects.
|
void |
addPattern(Pattern pattern,
boolean showMatch)
Adds a pattern to the storyboard.
|
void |
addPattern(PatternObject<?,?> pattern,
boolean showMatch)
Adds a pattern to the storyboard.
|
void |
addPreformatted(java.lang.String expandedText)
Adds a new step, with an preformatted text.
|
StoryboardImpl |
addStep(java.lang.String txt)
Adds a new Step to the current Storyboard.
|
void |
addSystemOut()
Adds the output of System.out, to the storyboard, after it has been recorded.
|
void |
addTable(Table table) |
void |
assertEquals(java.lang.String message,
double expected,
double actual,
double delta)
Asserts, that an expected and actual value are equal
and adds the result to the storyboard.
|
void |
assertEquals(java.lang.String message,
int expected,
int actual)
Asserts, that an expected and actual value are equal
and adds the result to the storyboard.
|
void |
assertEquals(java.lang.String message,
java.lang.Object expected,
java.lang.Object actual)
Asserts, that an expected and actual value are equal
and adds the result to the storyboard.
|
void |
assertFalse(java.lang.String message,
boolean condition)
Asserts, that a condition is not fulfilled and adds the result to the storyboard.
|
void |
assertNotNull(java.lang.String message,
java.lang.Object obj)
Asserts, that an object does not equal null and adds the result to the storyboard.
|
void |
assertNull(java.lang.String message,
java.lang.Object obj)
Asserts, that an object does equals null and adds the result to the storyboard.
|
void |
assertTrue(java.lang.String message,
boolean condition)
Asserts, that a condition is fulfilled and adds the result to the storyboard.
|
void |
dumpHTML()
Creates an html file, that contains the storyboard.
|
java.lang.String |
getMethodText(java.lang.String rootDir,
java.lang.String className,
java.lang.String methodSignature)
Returns the code of a specified method.
|
StoryboardImpl |
getStoryboard() |
void |
markCodeStart()
Marks the current position within the code.
|
void |
recordSystemOut()
Records the output of System.out.
|
Storyboard |
withDocDirName(java.lang.String name) |
public Storyboard()
public StoryboardImpl getStoryboard()
public StoryboardImpl addStep(java.lang.String txt)
"Start:" + txt, for first step
stepcount + "." + txt, for every following step.
txt - text, that is added to the new steppublic Storyboard withDocDirName(java.lang.String name)
public void addPreformatted(java.lang.String expandedText)
expandedText - this is the text, that the method is going to preformatpublic void add(java.lang.String string)
string - a string, that will be added to the storyboardpublic void addImage(java.lang.String imageFile)
imageFile - name of the file, that contains the imagepublic void addClassDiagram(ClassModel model)
model - object of the classmodel, that will be displayed as a diagrampublic void addObjectDiagram(java.lang.Object... elems)
elems - the elements, that the diagram will containpublic void addObjectDiagramOnlyWith(java.lang.Object... elems)
elems - the elements, that the diagram will only consist ofpublic void addPattern(PatternObject<?,?> pattern, boolean showMatch)
pattern - the pattern, that will be added storyboardshowMatch - flag, that specifies, if the matches of the pattern will be shownpublic void addPattern(Pattern pattern, boolean showMatch)
pattern - the pattern, that will be added storyboardshowMatch - flag, that specifies, if the matches of the pattern will be shownpublic void markCodeStart()
public void addCode()
public java.lang.String getMethodText(java.lang.String rootDir,
java.lang.String className,
java.lang.String methodSignature)
rootDir - the root directory of the file, that contains the specified methodclassName - name of the class, that contains the specified methodmethodSignature - signature of the specified method.public void recordSystemOut()
public void addSystemOut()
public void dumpHTML()
public void assertEquals(java.lang.String message,
double expected,
double actual,
double delta)
message - the message, that will be displayed, in case, that the assertion failedexpected - the expected valueactual - the actual valuedelta - allowed deviation between the two valuespublic void assertEquals(java.lang.String message,
java.lang.Object expected,
java.lang.Object actual)
message - the message, that will be displayed, in case, that the assertion faileexpected - the expected valueactual - the actual valuepublic void assertTrue(java.lang.String message,
boolean condition)
message - the message, that will be displayed, in case, that the assertion failecondition - the condition, that is used for the assertionpublic void assertFalse(java.lang.String message,
boolean condition)
message - the message, that will be displayed, in case, that the assertion failecondition - the condition, that is used for the assertionpublic void assertEquals(java.lang.String message,
int expected,
int actual)
message - the message, that will be displayed, in case, that the assertion faileexpected - the expected valueactual - the actual valuepublic void assertNotNull(java.lang.String message,
java.lang.Object obj)
message - the message, that will be displayed, in case, that the assertion faileobj - the object, that is used for the assertionpublic void assertNull(java.lang.String message,
java.lang.Object obj)
message - the message, that will be displayed, in case, that the assertion faileobj - the object, that is used for the assertionpublic void addTable(Table table)