Skip to content

Commit

Permalink
Merge pull request #956 from wmixvideo/duplicados
Browse files Browse the repository at this point in the history
Adicionar status de retorno duplicado no código 204.
  • Loading branch information
mauriciodantas authored Mar 15, 2024
2 parents 4d2affd + b3046e8 commit 5dc31d9
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 5dc31d9

Please sign in to comment.