예제 #1
0
  @Before
  public void setUp() {
    videoCapture = (VideoCaptureImpl) context.getBean(IVideoCapture.class);

    videoWriter = Mockito.mock(IVideoWriter.class);
    device = Mockito.mock(IDevice.class);
    threadPool = Mockito.mock(IThreadExecutor.class);
    videoCapture.setVideoWriter(videoWriter);
    videoCapture.setThreadExecutor(threadPool);
    MockitoAnnotations.initMocks(this);
  }