Details
Description
Assert.assertEquals(TaskCompletionEvent.Status.FAILED, events[0].getStatus().FAILED); Assert.assertEquals(TaskCompletionEvent.Status.FAILED, events[1].getStatus().FAILED);
when optimized would be
Assert.assertEquals(TaskCompletionEvent.Status.FAILED, TaskCompletionEvent.Status.FAILED); Assert.assertEquals(TaskCompletionEvent.Status.FAILED, TaskCompletionEvent.Status.FAILED);
obviously these assertions will never fail. If we remove the
.FAILED
the asserts no longer pass. This could be because MRApp mocks out the task launcher and never actually launches anything.