Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
vinicius
committed
Feb 19, 2021
1 parent
7233e37
commit e5c6f8e
Showing
10 changed files
with
122 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
1) Termine de substituir os ToDos da classe ContaCorrente | ||
1) Termine de substituir os ToDos da classe Conta | ||
por lançamentos de checked exceptions | ||
|
||
2) Verifique os chamadores dos métodos que você mexerá | ||
para que ele se prepare para o caso em que tal ou qual checked | ||
exception seja lançada | ||
|
||
3) Escreva unit tests para todas as situações excepcionais que | ||
podem acontecer dentro da classe ContaCorrente | ||
podem acontecer dentro da classe Conta |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
public enum Dinheiro { | ||
|
||
MOEDA_DE_CINCO_CENTAVOS(0.05f), | ||
MOEDA_DE_DEZ_CENTAVOS(0.10f), | ||
MOEDA_DE_VINTE_E_CINCO_CENTAVOS(0.25f), | ||
MOEDA_DE_CINQUENTA_CENTAVOS(0.50f), | ||
MOEDA_DE_UM_REAL(1), | ||
CEDULA_DE_DOIS_REAIS(2), | ||
CEDULA_DE_CINCO_REAIS(5), | ||
CEDULA_DE_DEZ_REAIS(10), | ||
CEDULA_DE_VINTE_REAIS(20), | ||
CEDULA_DE_CINQUENTA_REAIS(50), | ||
CEDULA_DE_CEM_REAIS(100), | ||
CEDULA_DE_DUZENTOS_REAIS(200); | ||
|
||
private float valorMonetario; | ||
|
||
Dinheiro(float valorMonetario) { | ||
this.valorMonetario = valorMonetario; | ||
} | ||
|
||
public float getValorMonetario() { | ||
return this.valorMonetario; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
public enum TipoDeConta { | ||
|
||
CONTA_CORRENTE, | ||
CONTA_POUPANCA, | ||
CONTA_SALARIO, | ||
CONTA_INVESTIMENTO; | ||
|
||
} |