Commit 6e764ce3 authored by Sonia Zorba's avatar Sonia Zorba
Browse files

Added Mockito timeout on test involving asynchronous code execution

parent e906ee23
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -204,7 +204,7 @@ public class JobServiceTest {

        verify(moveService, timeout(1000).times(1)).processMoveJob(any(), any());

        verify(jobDAO, times(3)).updateJob(any(), any());
        verify(jobDAO, timeout(1000).times(3)).updateJob(any(), any());
        assertEquals(ExecutionPhase.EXECUTING, phases.get(0));
        assertEquals(ExecutionPhase.EXECUTING, phases.get(1));
        assertEquals(ExecutionPhase.COMPLETED, phases.get(2));