Ejemplo n.º 1
0
  @Before
  public void setUp()
      throws AddressException, DateException, PhoneException, CPFException, RGException,
          PersonException {

    MockitoAnnotations.initMocks(this);

    date = new Date(05, 06, 1996);
    address = new Address("Rua 3 ", "6B", "", "72323411", "Brasilia");
    phone1 = new Phone("61", "83265622");
    phone2 = new Phone("61", "32551111");
    cpf = new CPF("51464638403");
    rg = new RG("8598298", "SSP", "DF");
    email = "*****@*****.**";
    courses = new ArrayList<String>();
    packages = new ArrayList<String>();

    value = new Integer(100000);
  }
  @Before
  public void setUp() throws Exception {
    MockitoAnnotations.initMocks(this);
    mExecutor = new TestExecutorService(new FakeClock());
    mLocalVideoThumbnailProducer = new LocalVideoThumbnailProducer(mExecutor);
    mFile = new File(Robolectric.application.getExternalFilesDir(null), TEST_FILENAME);

    mockStatic(ThumbnailUtils.class);
    mProducerContext =
        new SettableProducerContext(
            mImageRequest,
            mRequestId,
            mProducerListener,
            mock(Object.class),
            ImageRequest.RequestLevel.FULL_FETCH,
            false,
            false,
            Priority.MEDIUM);
    when(mImageRequest.getSourceFile()).thenReturn(mFile);
  }