• 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

0.0
/src/main/java/com/fincatto/documentofiscal/nfe310/classes/evento/downloadnf/NFDownloadNFe.java
1
package com.fincatto.documentofiscal.nfe310.classes.evento.downloadnf;
2

3
import com.fincatto.documentofiscal.DFAmbiente;
4
import com.fincatto.documentofiscal.DFBase;
5
import com.fincatto.documentofiscal.validadores.DFStringValidador;
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
@Root(name = "downloadNFe")
12
@Namespace(reference = "http://www.portalfiscal.inf.br/nfe")
13
public class NFDownloadNFe extends DFBase {
14
    private static final long serialVersionUID = 5595066759407095694L;
15
    
16
    @Attribute(name = "versao")
17
    private String versao;
18
    
19
    @Element(name = "tpAmb")
20
    private DFAmbiente ambiente;
21
    
22
    @Element(name = "xServ")
23
    private String servico;
24
    
25
    @Element(name = "CNPJ")
26
    private String cnpj;
27
    
28
    @Element(name = "chNFe")
29
    private String chave;
30

UNCOV
31
    public NFDownloadNFe() {
×
32
        this.versao = null;
×
33
        this.ambiente = null;
×
34
        this.servico = null;
×
35
        this.cnpj = null;
×
36
        this.chave = null;
×
37
    }
×
38

39
    public String getVersao() {
UNCOV
40
        return this.versao;
×
41
    }
42

43
    public void setVersao(final String versao) {
UNCOV
44
        this.versao = versao;
×
45
    }
×
46

47
    public DFAmbiente getAmbiente() {
UNCOV
48
        return this.ambiente;
×
49
    }
50

51
    public void setAmbiente(final DFAmbiente ambiente) {
UNCOV
52
        this.ambiente = ambiente;
×
53
    }
×
54

55
    public String getServico() {
UNCOV
56
        return this.servico;
×
57
    }
58

59
    public void setServico(final String servico) {
UNCOV
60
        this.servico = servico;
×
61
    }
×
62

63
    public String getCnpj() {
UNCOV
64
        return this.cnpj;
×
65
    }
66

67
    public void setCnpj(final String cnpj) {
UNCOV
68
        DFStringValidador.cnpj(cnpj);
×
69
        this.cnpj = cnpj;
×
70
    }
×
71

72
    public String getChave() {
UNCOV
73
        return this.chave;
×
74
    }
75

76
    public void setChave(final String chave) {
UNCOV
77
        DFStringValidador.exatamente44N(chave, "chave de acesso");
×
78
        this.chave = chave;
×
79
    }
×
80
}
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