|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectkorat.config.ConfigManager
public class ConfigManager
Single point for obtaining korat options
Field Summary | |
---|---|
String[] |
args
Array of arguments to be passed to the finitization method. |
String |
className
Full class name of the class under test. |
String |
config
Name of the config file (if used, null otherwise). |
private ConfigLoader |
configLoader
|
boolean |
cvDelta
Whether or not to use delta file format for storing candidate vectors. |
long |
cvEnd
Index in the cvFile of the ending candidate vector which the search algorithm should search to. |
long |
cvExpected
Expected number of total explored vectors. |
String |
cvFile
Name of the file that contains candidate vectors. |
int |
cvFullFormatRatio
Ratio of full format vectors (makes sense only if delta file format is used, i.e. |
long |
cvStart
Index in the cvFile of the starting candidate vector which the search algorithm should start searching from. |
boolean |
cvWrite
Whether or not to write explored candidate vectors to disk. |
int |
cvWriteNum
Number of equi-distant vectors to be written to disk (makes sense only if cvFrite is set to true . |
boolean |
dumpBytecodes
Whether or not to dump instrumented bytecodes. |
String[] |
excludePackages
Comma separated list of packages to be excluded from instrumentation. |
String |
finitization
Name of the finitization method. |
private static ConfigManager |
instance
|
String[] |
listeners
Comma separated list of ITestCaseListener listeners to be attached
to testCradle instance. |
long |
maxStructs
Max number of test cases to be generated. |
String |
predicate
Name of the predicate method to be used. |
boolean |
print
Whether or not to print generated test cases to standard output ( toString method would be called on each of the
valid test cases generated). |
boolean |
printCandVects
Whether or not to print candidate vector and access field list during the search process. |
long |
progress
Print progress during search on every progress -th generated
test case. |
String |
serialize
Serialize valid test cases to file with given name. |
boolean |
visualize
Whether or not to visualize valid test cases. |
Constructor Summary | |
---|---|
private |
ConfigManager()
|
Method Summary | |
---|---|
static ConfigManager |
getInstance()
|
void |
parseCmdLine(String[] args)
Parses the cmd line options (actually, delegates the job to configLoader ). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static ConfigManager instance
private ConfigLoader configLoader
public String[] args
public String className
public String config
public boolean cvDelta
public long cvEnd
public long cvExpected
cvWriteNum
is set to
true
.
public String cvFile
public int cvFullFormatRatio
cvDelta
is set to true
).
public long cvStart
public boolean cvWrite
public int cvWriteNum
cvFrite
is set to true
.
public boolean dumpBytecodes
public String[] excludePackages
public String finitization
public String[] listeners
ITestCaseListener
listeners to be attached
to testCradle
instance.
public long maxStructs
maxStructs
number of test cases is generated.
public String predicate
public boolean print
toString
method would be called on each of the
valid test cases generated).
public boolean printCandVects
public long progress
progress
-th generated
test case.
public String serialize
public boolean visualize
Constructor Detail |
---|
private ConfigManager()
Method Detail |
---|
public static ConfigManager getInstance()
public void parseCmdLine(String[] args)
configLoader
).
Korat sets its options using 3 level hierarchy (with ascending priorities):
args
- cmd line argumentsConfigLoader.parseCmdLine(String[])
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |