opencard.tests.terminal
Class CloseTerminal
java.lang.Object
|
+--opencard.core.service.CardService
|
+--opencard.tests.terminal.TestBean
|
+--opencard.tests.terminal.CloseTerminal
- public class CloseTerminal
- extends TestBean
The CloseTerminal.
It is derived from the TestBean which provide most of the required
functionality.
SAMPLE:
CloseTerminal ctb = new CloseTerminal();
ctb.setId("CTTest1");
ctb.initialize(card);
ctb.addExpectedResult(0);
ctb.execute();
- Version:
- $Id: CloseTerminal.java,v 1.1 1999/12/03 09:31:35 damke Exp $
- See Also:
TestBean
| 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 |
CloseTerminal
public CloseTerminal()
- Default constructor.
Sets a Label for the friendly log-output
Since the TestBeans should be beans, please declare only the default
constructor.
getTerminalFeatures
public java.util.Properties getTerminalFeatures()
setTerminalFeatures
public void setTerminalFeatures(java.util.Properties terminalFeatures)
initialize
public void initialize(SmartCard sc)
throws TestInitException
- Set the CardTerminal used with this Smartcard
- Parameters:
Use - the given smartcard-object
execute
public void execute()
throws TestFailedException,
TestInitException
- 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
|