Skip to content

Commit

Permalink
Campo de obrigatorio para opcional
Browse files Browse the repository at this point in the history
Faltou um campo
  • Loading branch information
jefperito committed Feb 2, 2016
1 parent c0ae3be commit 2912493
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public class NFNotaInfoItemImpostoICMS90 extends NFBase {
@Element(name = "CST", required = true)
private NFNotaInfoImpostoTributacaoICMS situacaoTributaria;

@Element(name = "modBC", required = true)
@Element(name = "modBC", required = false)
private NFNotaInfoItemImpostoICMSModalidadeBaseCalculo modalidadeBC;

@Element(name = "vBC", required = false)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ public void naoDevePermitirSituacaoTributariaNulo() {
icms90.toString();
}

@Test(expected = IllegalStateException.class)
public void naoDevePermitirModalidadeBCNulo() {
@Test
public void devePermitirModalidadeBCNulo() {
final NFNotaInfoItemImpostoICMS90 icms90 = new NFNotaInfoItemImpostoICMS90();
icms90.setSituacaoTributaria(NFNotaInfoImpostoTributacaoICMS.OUTROS);
icms90.setModalidadeDeterminacaoBCICMSST(NFNotaInfoItemModalidadeBCICMSST.LISTA_NEUTRA);
Expand Down

0 comments on commit 2912493

Please sign in to comment.