opencard.tests.service
Class MReadData
java.lang.Object
|
+--opencard.tests.testframe.TestCase
|
+--opencard.tests.service.MReadData
- public class MReadData
- extends TestCase
- implements java.lang.Runnable
The test carries out 5000 read operations on a CardFile.
If the program run without parameters then three threads are started. Each thread performs a read operation.
The tested card's layout is in the subdirectory testlay/lay-40a.
The corresponding card's layout must be on the card to run the program with parameters:
java MReadData
|
Constructor Summary |
MReadData()
|
MReadData(java.lang.String FileID,
int FileType,
int Index)
Instantiates a test to read from a file |
|
Method Summary |
static int |
getRetCode()
|
static void |
main(java.lang.String[] args)
Starts the program and evaluates the parameters. |
byte[] |
read(java.lang.String FileID,
int FileType,
int Index)
Read content of a file on the smartCard. |
void |
run()
Performs the read operation. |
static void |
setRetCode(int rc)
|
int |
start(java.lang.String[] args)
|
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
MReadData
public MReadData()
MReadData
public MReadData(java.lang.String FileID,
int FileType,
int Index)
- Instantiates a test to read from a file
- Parameters:
FileID - File to be read from (e.g. :1000:1003 - File 1003 in the Directory 1000 will be read)FileType - Type of the File: 0 - Flat File, 1 - Record FileIndex - Index of the Record (if FileType is 1 - Record File)
main
public static void main(java.lang.String[] args)
- Starts the program and evaluates the parameters.
start
public int start(java.lang.String[] args)
- Overrides:
- start in class TestCase
run
public void run()
- Performs the read operation.
- Specified by:
- run in interface java.lang.Runnable
read
public byte[] read(java.lang.String FileID,
int FileType,
int Index)
- Read content of a file on the smartCard.
- Parameters:
FileID - File to be read from (e.g. :1000:1003 - File 1003 in the Directory 1000 will be read)FileType - Type of the File: 0 - Flat File, 1 - Record FileIndex - Index of the Record (if FileType is 1 - Record File)
setRetCode
public static void setRetCode(int rc)
getRetCode
public static int getRetCode()
|