@Test public void advanceAssemblyLineTest() { Mockito.when(line.getEventConsumer()).thenReturn(clock); Mockito.when(line.getAssemblyLineController()).thenReturn(controller); state.advanceAssemblyLine(new ArrayList<Order>()); Mockito.verify(clock).unregister(controller); }
@Test public void completeTaskTest() { expected.expect(IllegalStateException.class); state.completeWorkpostTask(0, 0, 20); }
@Before public void setUp() throws Exception { MockitoAnnotations.initMocks(this); state = new BrokenState(); state.setAssemblyLine(line); }