-
Notifications
You must be signed in to change notification settings - Fork 0
Abrindo alteracoes para Pull Requests #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,6 +9,7 @@ public class Builder { | |
| Venda venda; | ||
| Funcionario funcionario; | ||
|
|
||
|
|
||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. O que vai acontecer se a tabela mudar várias vezes em um mesmo ano? |
||
| public void inicializaObjetos(){ | ||
| calculadora = new CalculadoraDeComissao(); | ||
| venda = new Venda(); | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -12,6 +12,7 @@ public void criaCalculadora(){ | |
| inicializaObjetos(); | ||
| } | ||
|
|
||
|
|
||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Usar herança aqui é meio forçado. Você não poderia apenas fazer uso do builder? Ele seria um componente que você usaria. Ele não precisa ser o seu pai |
||
| @Test | ||
| public void verificaComissaoDeCorretorComVendaDe2014ComMaisDe60Dias(){ | ||
| criaVendaComValorEm2014ComMaisDe60Dias(); | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok usar double quando é brincadeira, mas sempre que possível use bigdecimal