Package br.com.lawoffice.dominio

Examples of br.com.lawoffice.dominio.Conta


  }
 
 
  @Test()
  public void deveDebitarQuandoParametrosValidos(){
    Conta conta = new Conta();
    conta.setId(1L);
    conta.setSaldo(new BigDecimal(0));
    conta.setHistoricos(new ArrayList<HistoricoConta>());
   
    when(
      contaDao.localizar(Conta.class, conta)
    ).thenReturn(conta);
   
    when(
      contaDao.atualizar(conta)
    ).thenReturn(conta);
   
    conta = caixaBean.debitar(conta, new BigDecimal(1), new Date());
   
   
    assertNotNull(conta);
    assertEquals(new BigDecimal(-1), conta.getSaldo());
   
  }
View Full Code Here

TOP

Related Classes of br.com.lawoffice.dominio.Conta

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.