Class mtTestCase
java.lang.Object
org.apache.derby.impl.tools.ij.mtTestCase
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate intfloat -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetFile()getName()booleangrab()Attempt to grab this test case.Initialize the test case.initialize(String inputDir) Initizalize the test case.voidvoidrunMe(LocalizedOutput log, LocalizedOutput out, BufferedInputStream infile) Run the test case.voidsetDescription(String description) voidvoidvoidsetInputDir(String dir) voidvoidsetPropFile(String name) voidsetWeight(int weight) toString()Name says it allvoidupdateURLProperties(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:
FileNotFoundExceptionIOException
-
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:
FileNotFoundExceptionIOException
-
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
-