edu.buffalo.nsf.xmlcqa.test.cqa
Class TestUtil
java.lang.Object
edu.buffalo.nsf.xmlcqa.test.cqa.TestUtil
- Direct Known Subclasses:
- QueryAnsweringTest, QueryAnswerTest, SmartCutTest, TestForDTD, TestForErrors, TestForResultSize, TestForSize, TestForSizeWithErrors, VariousTest
- public class TestUtil
- extends java.lang.Object
- Author:
- staworko
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
a
public static Tag a
A
public static Token A
b
public static Tag b
B
public static Token B
c
public static Tag c
C
public static Token C
simpleDTD
public static DTD simpleDTD
simpleQuery
public static Query simpleQuery
textDTD
public static DTD textDTD
textQuery
public static Query textQuery
TestUtil
public TestUtil()
diff
public static double diff(java.util.Date start,
java.util.Date stop)
format
public static java.lang.String format(double val)
generateCleanSimpleFile
public static void generateCleanSimpleFile(java.lang.String file,
int size)
throws java.io.IOException
- Throws:
java.io.IOException
generateCleanTextFile
public static void generateCleanTextFile(java.lang.String file,
int size,
int result)
throws java.io.IOException
- Throws:
java.io.IOException
generateDirtySimpleFile
public static void generateDirtySimpleFile(java.lang.String file,
int size,
int errors)
throws java.io.IOException
- Throws:
java.io.IOException
generateDirtyTextFile
public static void generateDirtyTextFile(java.lang.String file,
int size,
int result,
int errors)
throws java.io.IOException
- Throws:
java.io.IOException
generateSimpleDTD
public DTD generateSimpleDTD(int size)
generateSimpleQuery
public static Query generateSimpleQuery(int length)
generateTextDTD
public DTD generateTextDTD(int size)
generateTextQuery
public static Query generateTextQuery(int length)
measure
public static double measure(double[] timing)
readFile
public static void readFile(java.lang.String file)
throws java.io.IOException
- Throws:
java.io.IOException
readStream
public static void readStream(TokenStream ts)