|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bitmechanic.maxq.generator.AbstractCodeGenerator org.dbforms.util.HttpTestCaseGenerator
public class HttpTestCaseGenerator
Generate a java JUnit test case. Take a look at the CodeGenerator Interface to see how to specify which one you want. The important information is that this class generates Java code.
IScriptGenerator
Field Summary |
---|
Fields inherited from class com.bitmechanic.maxq.generator.AbstractCodeGenerator |
---|
assertNumber, END_STATEMENT, jtidyConfigFile |
Fields inherited from interface com.bitmechanic.maxq.generator.IScriptGenerator |
---|
EOL |
Constructor Summary | |
---|---|
HttpTestCaseGenerator(com.bitmechanic.maxq.IScriptAdapter adapter)
Creates a new HttpTestCaseGenerator object. |
Method Summary | |
---|---|
protected String |
createStatement(String text)
Returns the supplied string left padded |
void |
doAddParameterToList(String name,
String value)
DOCUMENT ME! |
void |
doAssertResponse(String respCode)
DOCUMENT ME! |
void |
doCallUrl(String url,
String method,
String data,
String contentLength,
String list)
DOCUMENT ME! |
void |
doCreateList()
DOCUMENT ME! |
void |
doLoad(String script)
DOCUMENT ME! |
void |
doResponseForFile()
DOCUMENT ME! |
void |
doResponseForStdOut(String url)
DOCUMENT ME! |
void |
doSave(String path,
String fileName)
DOCUMENT ME! |
void |
doSetData(String data)
DOCUMENT ME! |
void |
doStartRecording()
DOCUMENT ME! |
void |
doStopRecording()
DOCUMENT ME! |
void |
doTestUrlMessage(String url)
DOCUMENT ME! |
void |
doTidyCode(String url)
DOCUMENT ME! |
protected String |
getTestDeclarationText()
DOCUMENT ME! |
String[] |
getValidFileExtensions()
DOCUMENT ME! |
String |
parseTestName()
DOCUMENT ME! |
Methods inherited from class com.bitmechanic.maxq.generator.AbstractCodeGenerator |
---|
appendEOL, getDefaultTestName, getScript, getScriptAdapter, getTestName, getTestPath, isCpRspToFile, isCpRspToStdout, loadScriptAdapter, processRequest, processResponse, setDefaultTestName, setTestName, setTestPath |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HttpTestCaseGenerator(com.bitmechanic.maxq.IScriptAdapter adapter)
adapter
- DOCUMENT ME!Method Detail |
---|
public String[] getValidFileExtensions()
public void doAddParameterToList(String name, String value)
name
- DOCUMENT ME!value
- DOCUMENT ME!public void doAssertResponse(String respCode)
respCode
- DOCUMENT ME!public void doCallUrl(String url, String method, String data, String contentLength, String list)
url
- DOCUMENT ME!method
- DOCUMENT ME!data
- DOCUMENT ME!contentLength
- DOCUMENT ME!list
- DOCUMENT ME!public void doCreateList()
public void doLoad(String script)
script
- DOCUMENT ME!public void doResponseForFile()
public void doResponseForStdOut(String url)
url
- DOCUMENT ME!public void doSave(String path, String fileName)
path
- DOCUMENT ME!fileName
- DOCUMENT ME!public void doSetData(String data)
data
- DOCUMENT ME!public void doStartRecording()
public void doStopRecording()
public void doTestUrlMessage(String url)
url
- DOCUMENT ME!public void doTidyCode(String url)
url
- DOCUMENT ME!public String parseTestName()
protected String getTestDeclarationText()
protected String createStatement(String text)
text
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |