Skip to content

Commit

Permalink
Adicionar status de retorno duplicado no código 204.
Browse files Browse the repository at this point in the history
  • Loading branch information
mauriciodantas committed Mar 15, 2024
1 parent 4d2affd commit b3046e8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,7 @@ public boolean isRejeitado() {
}

public boolean isDuplicado() {
return CODIGO_539.getCodigo() == this.codigo;
return CODIGO_539.getCodigo() == this.codigo || CODIGO_204.getCodigo() == this.codigo;
}

public boolean isJaInutilizado() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ public void isRejeitadoTest() {
@Test
public void isDuplicadoTest() {
Assert.assertTrue(NFRetornoStatus.CODIGO_539.isDuplicado());
Assert.assertTrue(NFRetornoStatus.CODIGO_204.isDuplicado());
Assert.assertFalse(NFRetornoStatus.CODIGO_100.isDuplicado());
}

Expand Down

0 comments on commit b3046e8

Please sign in to comment.