|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--autohit.verify.HTTPVerify
A simple HTTP Verify implementation.
Current issues:
1- Doesn't handle 'serious' encodings.
Constructor Summary | |
HTTPVerify()
Default constructor. |
Method Summary | |
boolean |
crc(int expected)
A CRC check operation. |
boolean |
exec(java.lang.String invocation,
java.lang.String content)
Run a sub-executable to perform a verification. |
void |
fresh(Response context)
Create a fresh verification context. |
int |
lastDelta()
Returns the numeric difference from the previous operation. |
void |
reset()
Reset the current verification context. |
boolean |
seek(java.lang.String expected)
A seek operation. |
boolean |
size(int expected)
A size check operation. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public HTTPVerify()
Method Detail |
public void fresh(Response context) throws VerifyException
address
- Address specification.public void reset() throws VerifyException
address
- Address specification.public boolean seek(java.lang.String expected) throws VerifyException
This will always return true if the expected string is empty.
expected
- the string to seek.public boolean crc(int expected) throws VerifyException
expected
- the expected CRC value.public boolean size(int expected) throws VerifyException
expected
- the expected size.public int lastDelta() throws VerifyException
It is calculated as actual - expected.
public boolean exec(java.lang.String invocation, java.lang.String content) throws VerifyException
Scrubbed for now... I need to ponder this entire mechanism. It will always return TRUE.
invocation
- an invocation string. used by the specific verification
to determine what to run and how to run it.content
- passed to the sun-executable as content.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |