コード例 #1
0
 @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);
 }
コード例 #2
0
 @Test
 public void completeTaskTest() {
   expected.expect(IllegalStateException.class);
   state.completeWorkpostTask(0, 0, 20);
 }
コード例 #3
0
 @Before
 public void setUp() throws Exception {
   MockitoAnnotations.initMocks(this);
   state = new BrokenState();
   state.setAssemblyLine(line);
 }