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

opencard.tests.terminal
Class TestThread

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--opencard.tests.terminal.TestThread

public class TestThread
extends java.lang.Thread

TestThread - A wrapper class for a TestCases running as a Thread.

Version:
$Id: TestThread.java,v 1.1 1999/12/03 09:31:37 damke Exp $
See Also:
TestBean

Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
TestThread()
           
 
Method Summary
protected  void createTestToPerform(java.lang.Class testCase)
          create an instance of the testcase using the given class
 ThreadStarter getCallingThreadStarter()
           
 SmartCard getCard()
           
 int getInstanceNo()
           
 boolean isEmbedded()
           
 void run()
          execute the Test
protected  void setCallingThreadStarter(ThreadStarter ts)
           
 void setCard(SmartCard card)
           
 void setEmbedded()
           
protected  void setInstanceNo(int i)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TestThread

public TestThread()
Method Detail

setInstanceNo

protected void setInstanceNo(int i)

getInstanceNo

public int getInstanceNo()

isEmbedded

public boolean isEmbedded()

setEmbedded

public void setEmbedded()

setCard

public void setCard(SmartCard card)

getCard

public SmartCard getCard()

getCallingThreadStarter

public ThreadStarter getCallingThreadStarter()

setCallingThreadStarter

protected void setCallingThreadStarter(ThreadStarter ts)

createTestToPerform

protected void createTestToPerform(java.lang.Class testCase)
create an instance of the testcase using the given class

run

public void run()
execute the Test
Overrides:
run in class java.lang.Thread

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Thread