interrupt work thread

This commit is contained in:
serso committed 2011-10-28 00:41:03 +04:00
1 parent 9720109905
commit 478b1af548
2 files changed
+38 -22

No files matched your search

@@ -117,6 +117,14 @@ public class CalculatorEngineTest {
junit.framework.Assert.fail();
}
}
try {
cm.setTimeout(5000);
Assert.assertEquals("2", cm.evaluate(JsclOperation.numeric, "2!").getResult());
} finally {
cm.setTimeout(2000);
}
}
@Test