org.apache.derby.impl.tools.ij
Class mtTestCase

java.lang.Object
  extended by org.apache.derby.impl.tools.ij.mtTestCase

public class mtTestCase
extends java.lang.Object


Field Summary
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
mtTestCase()
           
 
Method Summary
 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 all
 void updateURLProperties(java.util.Properties p, java.lang.String newURLPrefix)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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
Constructor Detail

mtTestCase

public mtTestCase()
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 class java.lang.Object

Built on Thu 2010-12-23 20:49:13+0000, from revision ???

Apache Derby V10.6 Internals - Copyright © 2004,2007 The Apache Software Foundation. All Rights Reserved.