Package org.apache.derby.impl.tools.ij
Class mtTestCase
java.lang.Object
org.apache.derby.impl.tools.ij.mtTestCase
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
private int
float
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetFile()
getName()
boolean
grab()
Attempt to grab this test case.Initialize the test case.initialize
(String inputDir) Initizalize the test case.void
void
runMe
(LocalizedOutput log, LocalizedOutput out, BufferedInputStream infile) Run the test case.void
setDescription
(String description) void
void
void
setInputDir
(String dir) void
void
setPropFile
(String name) void
setWeight
(int weight) toString()
Name says it allvoid
updateURLProperties
(Properties p, String newURLPrefix)
-
Field Details
-
name
-
file
-
propFile
-
weight
public float weight -
ignoreErrors
-
description
-
iterations
private int iterations -
attempts
private int attempts
-
-
Constructor Details
-
mtTestCase
public mtTestCase()
-
-
Method Details
-
mtTestCase
public void mtTestCase() -
setName
-
getName
-
setFile
-
setInputDir
-
getFile
-
setPropFile
-
getPropFile
-
setWeight
public void setWeight(int weight) -
setIgnoreErrors
-
setDescription
-
initialize
Initialize the test case. See initialize(String)- Throws:
FileNotFoundException
IOException
-
initialize
Initizalize the test case. Loads up the properties file and sets the input stream. Used to set up prior to running the thread.- Throws:
FileNotFoundException
IOException
-
grab
public boolean grab()Attempt to grab this test case. Uses random number and the weight of this case to determine if the grab was successful.- Returns:
- true/false
-
runMe
Run the test case. Invokes IJ to do our dirty work. -
updateURLProperties
-
alterURL
-
toString
Name says it all
-