Package org.apache.derby.impl.tools.ij
Class mtTestCase
- java.lang.Object
-
- org.apache.derby.impl.tools.ij.mtTestCase
-
public class mtTestCase extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private int
attempts
java.lang.String
description
java.lang.String
file
java.util.Hashtable
ignoreErrors
private int
iterations
java.lang.String
name
java.lang.String
propFile
float
weight
-
Constructor Summary
Constructors Constructor Description mtTestCase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
alterURL(java.lang.String url, java.lang.String newURLPrefix)
java.lang.String
getFile()
java.lang.String
getName()
java.lang.String
getPropFile()
boolean
grab()
Attempt to grab this test case.java.io.BufferedInputStream
initialize()
Initialize the test case.java.io.BufferedInputStream
initialize(java.lang.String inputDir)
Initizalize the test case.void
mtTestCase()
void
runMe(LocalizedOutput log, LocalizedOutput out, java.io.BufferedInputStream infile)
Run the test case.void
setDescription(java.lang.String description)
void
setFile(java.lang.String name)
void
setIgnoreErrors(java.util.Hashtable t)
void
setInputDir(java.lang.String dir)
void
setName(java.lang.String name)
void
setPropFile(java.lang.String name)
void
setWeight(int weight)
java.lang.String
toString()
Name says it allvoid
updateURLProperties(java.util.Properties p, java.lang.String newURLPrefix)
-
-
-
Field Detail
-
name
public java.lang.String name
-
file
public java.lang.String file
-
propFile
public java.lang.String propFile
-
weight
public float weight
-
ignoreErrors
public java.util.Hashtable ignoreErrors
-
description
public java.lang.String description
-
iterations
private int iterations
-
attempts
private int attempts
-
-
Method Detail
-
mtTestCase
public void mtTestCase()
-
setName
public void setName(java.lang.String name)
-
getName
public java.lang.String getName()
-
setFile
public void setFile(java.lang.String name)
-
setInputDir
public void setInputDir(java.lang.String dir)
-
getFile
public java.lang.String getFile()
-
setPropFile
public void setPropFile(java.lang.String name)
-
getPropFile
public java.lang.String getPropFile()
-
setWeight
public void setWeight(int weight)
-
setIgnoreErrors
public void setIgnoreErrors(java.util.Hashtable t)
-
setDescription
public void setDescription(java.lang.String description)
-
initialize
public java.io.BufferedInputStream initialize() throws java.io.FileNotFoundException, java.io.IOException
Initialize the test case. See initialize(String)- Throws:
java.io.FileNotFoundException
java.io.IOException
-
initialize
public java.io.BufferedInputStream initialize(java.lang.String inputDir) throws java.io.FileNotFoundException, java.io.IOException
Initizalize the test case. Loads up the properties file and sets the input stream. Used to set up prior to running the thread.- Throws:
java.io.FileNotFoundException
java.io.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
public void runMe(LocalizedOutput log, LocalizedOutput out, java.io.BufferedInputStream infile)
Run the test case. Invokes IJ to do our dirty work.
-
updateURLProperties
public void updateURLProperties(java.util.Properties p, java.lang.String newURLPrefix)
-
alterURL
public java.lang.String alterURL(java.lang.String url, java.lang.String newURLPrefix)
-
toString
public java.lang.String toString()
Name says it all- Overrides:
toString
in classjava.lang.Object
-
-