OpenCard  
 
OCF, the OpenCard Framework is a standard Java framework for working with Smart Cards.  
 

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

Fields inherited from class opencard.tests.terminal.TestBean
resultLookup
 
Constructor Summary
CloseTerminal()
          Default constructor.
 
Method Summary
 void execute()
          Execute using a previously defined CardTerminal
 java.util.Properties getTerminalFeatures()
           
 void initialize(SmartCard sc)
          Set the CardTerminal used with this Smartcard
 void setTerminalFeatures(java.util.Properties terminalFeatures)
           
 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 opencard.core.service.CardService
allocateCardChannel, getCard, getCardChannel, getCHVDialog, initialize, releaseCardChannel, setCardChannel, setCHVDialog
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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.
Method Detail

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