• 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

77.5
/src/main/java/com/fincatto/documentofiscal/nfe310/classes/nota/NFNotaInfoLocal.java
1
package com.fincatto.documentofiscal.nfe310.classes.nota;
2

3
import com.fincatto.documentofiscal.DFBase;
4
import com.fincatto.documentofiscal.DFUnidadeFederativa;
5
import com.fincatto.documentofiscal.validadores.DFStringValidador;
6
import org.simpleframework.xml.Element;
7

8
public class NFNotaInfoLocal extends DFBase {
1✔
9
    private static final long serialVersionUID = -6618642990785758823L;
10

11
    @Element(name = "CNPJ", required = false)
12
    private String cnpj;
13

14
    @Element(name = "CPF", required = false)
15
    private String cpf;
16
    
17
    @Element(name = "xLgr")
18
    private String logradouro;
19
    
20
    @Element(name = "nro")
21
    private String numero;
22

23
    @Element(name = "xCpl", required = false)
24
    private String complemento;
25
    
26
    @Element(name = "xBairro")
27
    private String bairro;
28
    
29
    @Element(name = "cMun")
30
    private String codigoMunicipio;
31
    
32
    @Element(name = "xMun")
33
    private String nomeMunicipio;
34
    
35
    @Element(name = "UF")
36
    private String uf;
37

38
    public void setCnpj(final String cnpj) {
39
        if (this.cpf != null) {
1✔
40
            throw new IllegalStateException("Nao pode setar CNPJ por que o CPF foi setado");
1✔
41
        }
42
        DFStringValidador.cnpj(cnpj);
1✔
43
        this.cnpj = cnpj;
1✔
44
    }
1✔
45

46
    public void setCpf(final String cpf) {
47
        if (this.cnpj != null) {
1✔
48
            throw new IllegalStateException("Nao pode setar CPF por que o CNPJ foi setado");
1✔
49
        }
50
        DFStringValidador.cpf(cpf);
1✔
51
        this.cpf = cpf;
1✔
52
    }
1✔
53

54
    public void setLogradouro(final String logradouro) {
55
        DFStringValidador.tamanho60(logradouro, "Logradouro Local");
1✔
56
        this.logradouro = logradouro;
1✔
57
    }
1✔
58

59
    public void setNumero(final String numero) {
60
        DFStringValidador.tamanho60(numero, "Numero Local");
1✔
61
        this.numero = numero;
1✔
62
    }
1✔
63

64
    public void setComplemento(final String complemento) {
65
        DFStringValidador.tamanho60(complemento, "Complemento Local");
1✔
66
        this.complemento = complemento;
1✔
67
    }
1✔
68

69
    public void setBairro(final String bairro) {
70
        DFStringValidador.tamanho2ate60(bairro, "Bairro Local");
1✔
71
        this.bairro = bairro;
1✔
72
    }
1✔
73

74
    public void setCodigoMunicipio(final String codigoMunicipio) {
75
        DFStringValidador.exatamente7(codigoMunicipio, "Codigo Municipio Local");
1✔
76
        this.codigoMunicipio = codigoMunicipio;
1✔
77
    }
1✔
78

79
    public void setNomeMunicipio(final String nomeMunicipio) {
80
        DFStringValidador.tamanho60(nomeMunicipio, "Nome Municipio Local");
1✔
81
        this.nomeMunicipio = nomeMunicipio;
1✔
82
    }
1✔
83

84
    public void setUf(final DFUnidadeFederativa uf) {
85
        this.uf = uf.getCodigo();
1✔
86
    }
1✔
87

88
    public String getCnpj() {
UNCOV
89
        return this.cnpj;
×
90
    }
91

92
    public String getCpf() {
UNCOV
93
        return this.cpf;
×
94
    }
95

96
    public String getLogradouro() {
UNCOV
97
        return this.logradouro;
×
98
    }
99

100
    public String getNumero() {
UNCOV
101
        return this.numero;
×
102
    }
103

104
    public String getComplemento() {
UNCOV
105
        return this.complemento;
×
106
    }
107

108
    public String getBairro() {
UNCOV
109
        return this.bairro;
×
110
    }
111

112
    public String getCodigoMunicipio() {
UNCOV
113
        return this.codigoMunicipio;
×
114
    }
115

116
    public String getNomeMunicipio() {
UNCOV
117
        return this.nomeMunicipio;
×
118
    }
119

120
    public String getUf() {
UNCOV
121
        return this.uf;
×
122
    }
123
}
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