opencard.tests.terminal
Class CardEvent
java.lang.Object
|
+--opencard.core.service.CardService
|
+--opencard.tests.terminal.TestBean
|
+--opencard.tests.terminal.CardEvent
- public class CardEvent
- extends TestBean
- implements CTListener
The CardEvent.
It is derived from the TestBean which provide most of the required
functionality.
SAMPLE:
CardEvent ce = new CardEvent();
ce.setId("CTTest3");
ce.setIterations(5);
ce.addExpectedResult(0);
ce.execute();
- Version:
- $Id: CardEvent.java,v 1.1 1999/12/03 09:31:35 damke Exp $
- See Also:
TestBean
|
Constructor Summary |
CardEvent()
Default constructor.
|
| Methods inherited from class opencard.tests.terminal.TestBean |
addExpectedResult,
addExpectedResult,
addUnexpectedResult,
addUnexpectedResult,
checkResult,
clearResultLookup,
getId,
getLabel,
getResult,
getResultString,
getTitle,
isDetails,
lookupResult,
lookupResult,
setDetails,
setId,
setLabel,
setResult,
setResult,
setResult |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
CardEvent
public CardEvent()
- Default constructor.
Sets a Label for the friendly log-output
Since the TestBeans should be beans, please declare only the default
constructor.
setIterations
public void setIterations(int iterations)
cardInserted
public void cardInserted(CardTerminalEvent ctEvent)
- Gets invoked if a card is inserted.
- Specified by:
- cardInserted in interface CTListener
cardRemoved
public void cardRemoved(CardTerminalEvent ctEvent)
- Gets invoked if a card is removed.
- Specified by:
- cardRemoved in interface CTListener
execute
public void execute()
throws TestFailedException
- Execute using a previously defined CardTerminal
- Throws:
- throws - an TestFailedException, if result of this exceution
is unexpected or not listed in the result lookup table
- Overrides:
- execute in class TestBean
toString
public java.lang.String toString()
- Overrides:
- toString in class TestBean
|