super(TestSubmit.class.getCanonicalName());
}
public void test()
{
Submit submit = new Submit();
ScriptRepository repository = new ScriptRepository(false);
List<ScriptText> scripts = new ArrayList<ScriptText>();
scripts.add(new ScriptText("dynamic", getRuleText()));
try {
submit.addScripts(scripts);
} catch (Exception e) {
System.out.println("exception submitting script");
fail();
}
try {
log("calling TestSubmit.triggerMethod");
triggerMethod();
log("called TestSubmit.triggerMethod");
} catch (Exception e) {
log(e);
} catch (Throwable th) {
System.out.println("unexpected throwable " + th);
fail();
}
try {
submit.deleteScripts(scripts);
} catch (Exception e) {
System.out.println("exception deleting script");
fail();
}