-
Notifications
You must be signed in to change notification settings - Fork 382
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adicionado parser para nota processada
Adicionado parser para nota processada Criado teste de unidade para Parser de nota
- Loading branch information
Showing
4 changed files
with
50 additions
and
4 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
21 changes: 21 additions & 0 deletions
21
src/test/java/com/fincatto/nfe310/parsers/NotaParserTest.java
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,21 @@ | ||
package com.fincatto.nfe310.parsers; | ||
|
||
import org.junit.Assert; | ||
import org.junit.Test; | ||
|
||
import com.fincatto.nfe310.FabricaDeObjetosFake; | ||
|
||
public class NotaParserTest { | ||
|
||
@Test | ||
public void deveParsearCorretamenteUmXMLDaNota310() { | ||
final String xmlNota = FabricaDeObjetosFake.getNFNota().toString(); | ||
Assert.assertNotNull(new NotaParser().notaParaObjeto(xmlNota)); | ||
} | ||
|
||
@Test | ||
public void deveParsearCorretamenteUmXMLDaNotaProcessada310() { | ||
final String xmlNota = FabricaDeObjetosFake.getNFNotaProcessada().toString(); | ||
Assert.assertNotNull(new NotaParser().notaProcessadaParaObjeto(xmlNota)); | ||
} | ||
} |