• 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

71.43
/src/main/java/com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoSeguro.java
1
package com.fincatto.documentofiscal.mdfe3.classes.nota;
2

3
import com.fincatto.documentofiscal.DFBase;
4
import com.fincatto.documentofiscal.validadores.DFStringValidador;
5
import org.simpleframework.xml.Element;
6
import org.simpleframework.xml.ElementList;
7
import org.simpleframework.xml.Namespace;
8
import org.simpleframework.xml.Root;
9

10
import java.util.List;
11

12
/**
13
 * Created by Eldevan Nery Junior on 07/12/17. Informações de Seguro da Carga.
14
 */
15
@Root(name = "seg")
16
@Namespace(reference = "http://www.portalfiscal.inf.br/mdfe")
17
public class MDFInfoSeguro extends DFBase {
1✔
18

19
    private static final long serialVersionUID = 665561268515018765L;
20

21
    @Element(name = "infResp")
22
    private MDFInfoSeguroResponsavel responsavelSeguro;
23

24
    @Element(name = "infSeg", required = false)
25
    private MDFInfoSeguroInfo info;
26

27
    @Element(name = "nApol", required = false)
28
    private String apolice;
29

30
    @ElementList(name = "nAver", inline = true, entry = "nAver")
31
    private List<String> averbacao;
32

33
    public MDFInfoSeguroInfo getInfo() {
UNCOV
34
        return this.info;
×
35
    }
36

37
    /**
38
     * Informações do responsável pelo seguro da carga
39
     */
40
    public MDFInfoSeguroResponsavel getResponsavelSeguro() {
UNCOV
41
        return responsavelSeguro;
×
42
    }
43

44
    public void setResponsavelSeguro(MDFInfoSeguroResponsavel responsavelSeguro) {
45
        this.responsavelSeguro = responsavelSeguro;
1✔
46
    }
1✔
47

48
    /**
49
     * Informações da seguradora
50
     */
51
    public void setInfo(final MDFInfoSeguroInfo info) {
52
        this.info = info;
1✔
53
    }
1✔
54

55
    public String getApolice() {
56
        return this.apolice;
×
57
    }
58

59
    /**
60
     * Número da Apólice<br>
61
     * Obrigatório pela lei 11.442/07 (RCTRC)
62
     */
63
    public void setApolice(final String apolice) {
64
        DFStringValidador.tamanho20(apolice, "Número da Apólice");
1✔
65
        this.apolice = apolice;
1✔
66
    }
1✔
67

68
    public List<String> getAverbacao() {
UNCOV
69
        return this.averbacao;
×
70
    }
71

72
    /**
73
     * 127 | nAver | 2 | Número da Averbação | E | C | 0 - n | 1 - 40 | ER35 | Informar as averbações do seguro
74
     */
75
    public void setAverbacao(final List<String> averbacao) {
76
        this.averbacao = averbacao;
1✔
77
    }
1✔
78
}
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