|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ConcurrentTestCommand
ConcurrentTestCommand represents a command, sequentially executed by
ConcurrentTestCommandExecutor
, during a concurrency test
ConcurrentTestCommand instances are normally instantiated by the
ConcurrentTestCommandGenerator
class.
Nested Class Summary | |
---|---|
static class |
ConcurrentTestCommand.ShouldHaveFailedException
Indicates that a command should have failed, but instead succeeded, which is a test error |
Method Summary | |
---|---|
void |
execute(ConcurrentTestCommandExecutor exec)
Executes this command. |
boolean |
isFailureExpected()
Returns true if the command should fail. |
ConcurrentTestCommand |
markToFail()
Set this command to expect a patternless failure. |
ConcurrentTestCommand |
markToFail(String comment,
String pattern)
Marks a command to show that it is expected to fail, and indicates how. |
Method Detail |
---|
void execute(ConcurrentTestCommandExecutor exec) throws Exception
exec
- the ConcurrentTestCommandExecutor firing this command.
ConcurrentTestCommand.ShouldHaveFailedException
- to indicate a test failure
Exception
ConcurrentTestCommandExecutor.getStatement()
,
ConcurrentTestCommandExecutor.setStatement(java.sql.Statement)
ConcurrentTestCommand markToFail(String comment, String pattern)
comment
- a brief description of the expected errorpattern
- null, or a regular expression that matches the expected
error message.boolean isFailureExpected()
ConcurrentTestCommand markToFail()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |