• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

wmixvideo / nfe / #7947

10 Mar 2026 08:42PM UTC coverage: 50.346% (+23.4%) from 26.996%
#7947

push

web-flow
Mantendo compatibilidade com java 1.8 e tratamento erro Connection or outbound has closed (#1151)

* Removendo ; duplicado e warn serial version

* Mantendo compatibilidade com java 1.8

* Removendo ; duplicado e warn serial version

* Mantendo compatibilidade com java 1.8

* Remove unused import statement

Removed unused import for LocalDate.

* Remove deprecated CST_210 and CST_510 entries

* Remove obsolete CST code assertions from tests

Removed assertions for CST codes 210001, 210002, and 210003 from tests.

* Enhance fromOM method to handle operation response

Resolvendo expection org.apache.axis2.databinding.ADBException: Unexpected subelement {http://www.portalfiscal.inf.br/nfe/wsdl/NFeAutorizacao4}nfeResultMsg

* Enhance fromOM method for better XML parsing

Resolvendo exception org.apache.axis2.databinding.ADBException: Unexpected subelement

Refactor fromOM method to handle child elements for NfeDadosMsg and NfeResultMsg parsing.

* Refactor fromOM method to handle child elements

Resolvendo exception org.apache.axis2.databinding.ADBException: Unexpected subelement

* Mantendo compatibilidade versão java 1.8

* Removendo CST obsoletos

* Removendo tratamento erro ADBException

* Removendo tratamento erro ADBException

* Removendo tratamento erro ADBException

* Desabilitando o uso de transferências chunked nas requisições HTTP
(NFeAutorizacao4Stub ja tem) Resolvendo erro intermitente manifesto
destinatário HTTPSenderImpl:215 - Unable to sendViaPost to
url[https://www.nfe.fazenda.gov.br/NFeRecepcaoEvento4/NFeRecepcaoEvento4.asmx]
org.apache.axis2.AxisFault: Connection or outbound has closed

---------

Co-authored-by: tecnosofti <tecnosofti@amdryzen>
Co-authored-by: Diego Fincatto <58352+fincatto@users.noreply.github.com>

1 of 1 new or added line in 1 file covered. (100.0%)

2969 existing lines in 403 files now uncovered.

14775 of 29347 relevant lines covered (50.35%)

0.5 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

53.85
/src/main/java/com/fincatto/documentofiscal/nfe310/classes/nota/NFNotaProcessada.java
1
package com.fincatto.documentofiscal.nfe310.classes.nota;
2

3
import com.fincatto.documentofiscal.DFBase;
4
import com.fincatto.documentofiscal.nfe310.classes.NFProtocolo;
5
import com.fincatto.documentofiscal.validadores.DFBigDecimalValidador;
6
import org.simpleframework.xml.Attribute;
7
import org.simpleframework.xml.Element;
8
import org.simpleframework.xml.Namespace;
9
import org.simpleframework.xml.Root;
10

11
import java.math.BigDecimal;
12

13
@Root(name = "nfeProc")
14
@Namespace(reference = "http://www.portalfiscal.inf.br/nfe")
15
public class NFNotaProcessada extends DFBase {
1✔
16
    private static final long serialVersionUID = 6979476565566044621L;
17

18
    @Attribute(name = "versao")
19
    private String versao;
20

21
    @Attribute(name = "schemaLocation", required = false)
22
    private String schemaLocation;
23

24
    @Element(name = "NFe")
25
    private NFNota nota;
26

27
    @Element(name = "protNFe")
28
    private NFProtocolo protocolo;
29

30
    public NFNota getNota() {
UNCOV
31
        return this.nota;
×
32
    }
33

34
    public String getVersao() {
UNCOV
35
        return this.versao;
×
36
    }
37

38
    public NFProtocolo getProtocolo() {
UNCOV
39
        return this.protocolo;
×
40
    }
41

42
    public void setNota(final NFNota nota) {
43
        this.nota = nota;
1✔
44
    }
1✔
45

46
    public void setProtocolo(final NFProtocolo protocolo) {
47
        this.protocolo = protocolo;
1✔
48
    }
1✔
49

50
    public void setVersao(final BigDecimal versao) {
51
        this.versao = DFBigDecimalValidador.tamanho4Com2CasasDecimais(versao, "Versao Nota Processada");
1✔
52
    }
1✔
53

54
    public String getSchemaLocation() {
UNCOV
55
        return schemaLocation;
×
56
    }
57

58
    public void setSchemaLocation(String schemaLocation) {
UNCOV
59
        this.schemaLocation = schemaLocation;
×
60
    }
×
61
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc