|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.hyphenType.unittesting.UnitTestingAppEngine
public final class UnitTestingAppEngine
Constructor Summary | |
---|---|
UnitTestingAppEngine(Class<?> appClass,
String... arguments)
|
|
UnitTestingAppEngine(Class<?> appClass,
UnitTestingUserInput input,
String... arguments)
|
Method Summary | |
---|---|
String |
err()
|
StackTraceElement |
exitCallPoint()
Retrieves at which point the application under test called Options#exit(Enum) or Options#exit(int) . |
boolean |
exitEnumCalled()
|
boolean |
exitIntCalled()
|
Enum<?> |
getStatusCodeEnum()
|
int |
getStatusCodeInt()
|
String |
out()
|
void |
saveStdoutInteraction(String fileName)
Writes the output written to stdout to a file. |
void |
saveStdoutInteractionHTML(String fileName)
Writes the output written to stdout to a file using HTML snippet format. |
void |
saveStdoutInteractionHTML(String fileName,
String prefix,
String sufix)
Writes the output written to stdout to a file using HTML snippet format. |
Throwable |
uncaughtThrowable()
If the execution of the application under test threw any Throwable that was not caught by any exit status constant,
this method will return this Throwable . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UnitTestingAppEngine(Class<?> appClass, String... arguments) throws InvalidOptionsInterfaceException
appClass
- arguments
-
InvalidOptionsInterfaceException
InvalidOptionException
public UnitTestingAppEngine(Class<?> appClass, UnitTestingUserInput input, String... arguments) throws InvalidOptionsInterfaceException
appClass
- input
- arguments
-
InvalidOptionsInterfaceException
InvalidOptionException
Method Detail |
---|
public String err()
public String out()
public Enum<?> getStatusCodeEnum()
public boolean exitEnumCalled()
Options#exit(Enum)
.public int getStatusCodeInt()
public boolean exitIntCalled()
Options#exit(int)
.public StackTraceElement exitCallPoint()
Options#exit(Enum)
or Options#exit(int)
.
Options#exit(Enum)
or
Options#exit(int)
.public void saveStdoutInteraction(String fileName)
fileName
- The file name to save output to.public void saveStdoutInteractionHTML(String fileName)
fileName
- The file name to save output to.public void saveStdoutInteractionHTML(String fileName, String prefix, String sufix)
fileName
- The file name to save output to.prefix
- The string to add at the beginning of the generated HTMLsufix
- The string to add at the end of the generated HTMLpublic Throwable uncaughtThrowable()
Throwable
that was not caught by any exit status constant,
this method will return this Throwable
.
Throwable
that was possibly thrown during the
execution of the application. Returns null if no throwable
was thrown and uncaught.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |