// ToDo: Need to rewrite.
@Test(expected = TaskExecutionException.class)
    @Ignore("Test execution is depending on server technical characteristics.")
    // ToDo: Need to rewrite.
    public void Should_throwWhenAnotherTaskIsBeingExecuted()
            throws Exception {
        thread.execute(() -> {
            try {
                Thread.sleep(200);
            } catch (InterruptedException e) {
                thread.interrupt();
            }
        });
        thread.execute(mock(ITask.class));
    }
@Test(expected = TaskExecutionException.class)
@Ignore("Test execution is depending on server technical characteristics.")
// ToDo: Need to rewrite.
public void Should_throwWhenAnotherTaskIsBeingExecuted()
throws Exception {
@Test(expected = TaskExecutionException.class)
@Ignore("Test execution is depending on server technical characteristics.")
// ToDo: Need to rewrite.
public void Should_throwWhenAnotherTaskIsBeingExecuted()
throws Exception {
thread.execute(() -> {
try {
Thread.sleep(200);
} catch (InterruptedException e) {
thread.interrupt();
}
});
thread.execute(mock(ITask.class));
@Test(expected = TaskExecutionException.class)
@Ignore("Test execution is depending on server technical characteristics.")
// ToDo: Need to rewrite.
public void Should_throwWhenAnotherTaskIsBeingExecuted()
throws Exception {
thread.execute(() -> {
try {
Thread.sleep(200);
} catch (InterruptedException e) {
thread.interrupt();
}
});
thread.execute(mock(ITask.class));
}