}
public void run() {
// run method
ICheckpoint checkpoint = new ICheckpoint() {
public void checkpoint() {
handler.checkpoint(method);
while (true) {
try {
Thread.sleep(10000);
} catch (InterruptedException e) {
}
}
}
};
try {
method.invoke(scenario, new Object[] { checkpoint });
// Thread.sleep(10000);
} catch (IllegalArgumentException e) {
checkpoint.checkpoint();
} catch (IllegalAccessException e) {
checkpoint.checkpoint();
} catch (InvocationTargetException e) {
checkpoint.checkpoint();
}
}