opencard.tests.terminal
Class GetATR
java.lang.Object
|
+--opencard.core.service.CardService
|
+--opencard.tests.terminal.TestBean
|
+--opencard.tests.terminal.GetATR
- public class GetATR
- extends TestBean
The GetATR.
It is derived from the TestBean which provide most of the required
functionality.
SAMPLE:
GetATR atr = new GetATR();
atr.setId("CTnTest1a");
atr.initialize(card);
atr.addExpectedResult(0);
atr.execute();
- Version:
- $Id: GetATR.java,v 1.1 1999/12/03 09:31:36 damke Exp $
- See Also:
TestBean
|
Constructor Summary |
GetATR()
Default constructor.
|
|
Method Summary |
void |
execute()
Execute using a previously defined CardTerminal |
void |
initialize(SmartCard sc)
Set the CardTerminal used with this Smartcard |
java.lang.String |
toString()
|
| 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 |
GetATR
public GetATR()
- Default constructor.
Sets a Label for the friendly log-output
Since the TestBeans should be beans, please declare only the default
constructor.
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
- 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
|