• 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

44.83
/src/main/java/com/fincatto/documentofiscal/nfe400/classes/nota/NFNotaInfoTransporte.java
1
package com.fincatto.documentofiscal.nfe400.classes.nota;
2

3
import com.fincatto.documentofiscal.DFBase;
4
import com.fincatto.documentofiscal.nfe400.classes.NFModalidadeFrete;
5
import com.fincatto.documentofiscal.validadores.DFListValidador;
6
import com.fincatto.documentofiscal.validadores.DFStringValidador;
7
import org.simpleframework.xml.Element;
8
import org.simpleframework.xml.ElementList;
9

10
import java.util.List;
11

12
public class NFNotaInfoTransporte extends DFBase {
1✔
13
    private static final long serialVersionUID = 1172316192774549031L;
14
    
15
    @Element(name = "modFrete")
16
    private NFModalidadeFrete modalidadeFrete;
17

18
    @Element(name = "transporta", required = false)
19
    private NFNotaInfoTransportador transportador;
20

21
    @Element(name = "retTransp", required = false)
22
    private NFNotaInfoRetencaoICMSTransporte icmsTransporte;
23

24
    @Element(name = "veicTransp", required = false)
25
    private NFNotaInfoVeiculo veiculo;
26

27
    @ElementList(entry = "reboque", inline = true, required = false)
28
    private List<NFNotaInfoReboque> reboques;
29

30
    @Element(name = "vagao", required = false)
31
    private String vagao;
32

33
    @Element(name = "balsa", required = false)
34
    private String balsa;
35

36
    @ElementList(entry = "vol", inline = true, required = false)
37
    private List<NFNotaInfoVolume> volumes;
38

39
    public void setModalidadeFrete(final NFModalidadeFrete modalidadeFrete) {
40
        this.modalidadeFrete = modalidadeFrete;
1✔
41
    }
1✔
42

43
    public void setTransportador(final NFNotaInfoTransportador transportador) {
44
        this.transportador = transportador;
1✔
45
    }
1✔
46

47
    public void setIcmsTransporte(final NFNotaInfoRetencaoICMSTransporte icmsTransporte) {
48
        this.icmsTransporte = icmsTransporte;
1✔
49
    }
1✔
50

51
    public void setVeiculo(final NFNotaInfoVeiculo veiculo) {
UNCOV
52
        this.veiculo = veiculo;
×
53
    }
×
54

55
    public void setReboques(final List<NFNotaInfoReboque> reboques) {
56
        DFListValidador.tamanho5(reboques, "Reboques");
1✔
57
        this.reboques = reboques;
1✔
58
    }
1✔
59

60
    public void setVolumes(final List<NFNotaInfoVolume> volumes) {
61
        DFListValidador.tamanho5000(volumes, "Volumes");
1✔
62
        this.volumes = volumes;
1✔
63
    }
1✔
64

65
    public void setVagao(final String vagao) {
UNCOV
66
        DFStringValidador.tamanho20(vagao, "Vagao");
×
67
        this.vagao = vagao;
×
68
    }
×
69

70
    public void setBalsa(final String balsa) {
UNCOV
71
        DFStringValidador.tamanho20(balsa, "Balsa");
×
72
        this.balsa = balsa;
×
73
    }
×
74

75
    public NFModalidadeFrete getModalidadeFrete() {
UNCOV
76
        return this.modalidadeFrete;
×
77
    }
78

79
    public NFNotaInfoTransportador getTransportador() {
UNCOV
80
        return this.transportador;
×
81
    }
82

83
    public NFNotaInfoRetencaoICMSTransporte getIcmsTransporte() {
UNCOV
84
        return this.icmsTransporte;
×
85
    }
86

87
    public NFNotaInfoVeiculo getVeiculo() {
UNCOV
88
        return this.veiculo;
×
89
    }
90

91
    public List<NFNotaInfoReboque> getReboques() {
UNCOV
92
        return this.reboques;
×
93
    }
94

95
    public String getVagao() {
UNCOV
96
        return this.vagao;
×
97
    }
98

99
    public String getBalsa() {
UNCOV
100
        return this.balsa;
×
101
    }
102

103
    public List<NFNotaInfoVolume> getVolumes() {
UNCOV
104
        return this.volumes;
×
105
    }
106
}
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