use of il.ac.bgu.cs.bp.bpjs.execution.listeners.PrintBProgramRunnerListener in project BPjs by bThink-BGU.
the class InterruptHandlerTest method illegalBsyncTest.
@Test(expected = BProgramException.class)
public void illegalBsyncTest() throws InterruptedException {
BProgramRunner sut = new BProgramRunner(new SingleResourceBProgram("InterruptHandler_illegal.js"));
sut.addListener(new PrintBProgramRunnerListener());
sut.run();
fail("Program should have terminated in error.");
}
Aggregations