Methods Summary |
---|
public java.lang.String | getAlgorithmName()
return algName;
|
public java.lang.String | getFailureMessages()
return (errorSB == null) ? "" : new String(errorSB);
|
public java.lang.String | getNextAlgorithmName()
aCounter = (hasAlgorithmName()) ? aCounter : 0;
return algNamesArray[aCounter++];
|
public long | getTotalFailuresNumber()
return fails;
|
public boolean | hasAlgorithmName()
return (aCounter < algNamesArray.length);
|
public void | launcher()
Thread thread = null;
do {
algName = getNextAlgorithmName();
thread = new Thread(this);
thread.start();
try {
thread.join();
} catch (InterruptedException e) {
e.printStackTrace();
}
} while (hasAlgorithmName());
|
public void | run()
try {
test();
} catch (Exception e) {
if(errorSB == null) {
errorSB = new StringBuffer();
}
errorSB.append(e.getMessage());
errorSB.append("\n");
errorSB.append(getAlgorithmName());
errorSB.append("\n");
StackTraceElement[] st = e.getStackTrace();
for (int i = 0; i < st.length; i++) {
errorSB.append(st[i].toString());
errorSB.append("\n");
}
fails++;
return;
}
flagTestResult = true;
|
public abstract void | test()
|