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

opencard.tests.testframe
Class TestCase

java.lang.Object
  |
  +--opencard.tests.testframe.TestCase
Direct Known Subclasses:
CardRequestTC, CreateFile, CTTestCase, DecipherData, DeleteFile, DummyTC, EncipherData, GetFileSize, MReadData, MWriteData, ReadData, SCClose, SCStart, SignData, ThreadTest, VerifySignedData, WaitFC, WriteData

public abstract class TestCase
extends java.lang.Object

The SuperTestCase class is the super class for all test cases. It defines the abstract method startTestCase which has to be implemented by all test cases which then can be started by the TestFrme class. With the setTestFrameReference method and the getTestFrameReference method, the reference to the TestFrame instance can be get/set.


Constructor Summary
TestCase()
           
 
Method Summary
 TestFrame getTestFrameReference()
          Getter method for the TestFrame reference
 void setTestFrameReference(TestFrame tframe)
          Setter mthod for the TestFrameReference
 void showActionRequired(java.lang.String uimessage)
          Displaying a message that shows required user interaction
 void showError(java.lang.String errormessage)
          Displaying an error message on the screen
 void showInfo(java.lang.String infomessage)
          Displaying an information message on the screen
abstract  int start(java.lang.String[] Params)
          Abstract definition for the startTestCasemethod the implemented methods start test case execution
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestCase

public TestCase()
Method Detail

showInfo

public void showInfo(java.lang.String infomessage)
Displaying an information message on the screen
Parameters:
String - infomessage information message to display

showError

public void showError(java.lang.String errormessage)
Displaying an error message on the screen
Parameters:
String - errormessage error message to display

showActionRequired

public void showActionRequired(java.lang.String uimessage)
Displaying a message that shows required user interaction
Parameters:
String - uimessage information message to display

getTestFrameReference

public TestFrame getTestFrameReference()
Getter method for the TestFrame reference
Returns:
TestFrame reference to the instantiated TestFrame

setTestFrameReference

public void setTestFrameReference(TestFrame tframe)
Setter mthod for the TestFrameReference
Parameters:
TestFrame - instance of the TestFrame to be referenced

start

public abstract int start(java.lang.String[] Params)
Abstract definition for the startTestCasemethod the implemented methods start test case execution
Parameters:
String - [] Parameters of the test case to start