• 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

72.22
/src/main/java/com/fincatto/documentofiscal/nfe310/classes/nota/NFNotaInfoItem.java
1
package com.fincatto.documentofiscal.nfe310.classes.nota;
2

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

9
public class NFNotaInfoItem extends DFBase {
1✔
10
    private static final long serialVersionUID = 362646693945373643L;
11
    
12
    @Attribute(name = "nItem")
13
    private Integer numeroItem;
14
    
15
    @Element(name = "prod")
16
    private NFNotaInfoItemProduto produto;
17
    
18
    @Element(name = "imposto")
19
    private NFNotaInfoItemImposto imposto;
20

21
    @Element(name = "impostoDevol", required = false)
22
    private NFImpostoDevolvido impostoDevolvido;
23

24
    @Element(name = "infAdProd", required = false)
25
    private String informacoesAdicionais;
26

27
    public void setNumeroItem(final Integer numeroItem) {
28
        DFIntegerValidador.tamanho3maximo990(numeroItem, "Numero do Item");
1✔
29
        this.numeroItem = numeroItem;
1✔
30
    }
1✔
31

32
    public void setInformacoesAdicionais(final String informacoesAdicionais) {
33
        DFStringValidador.tamanho500(informacoesAdicionais, "Informacoes Adicionais do Item");
1✔
34
        this.informacoesAdicionais = informacoesAdicionais;
1✔
35
    }
1✔
36

37
    public void setProduto(final NFNotaInfoItemProduto produto) {
38
        this.produto = produto;
1✔
39
    }
1✔
40

41
    public void setImposto(final NFNotaInfoItemImposto imposto) {
42
        this.imposto = imposto;
1✔
43
    }
1✔
44

45
    public Integer getNumeroItem() {
UNCOV
46
        return this.numeroItem;
×
47
    }
48

49
    public NFNotaInfoItemProduto getProduto() {
UNCOV
50
        return this.produto;
×
51
    }
52

53
    public NFNotaInfoItemImposto getImposto() {
UNCOV
54
        return this.imposto;
×
55
    }
56

57
    public String getInformacoesAdicionais() {
UNCOV
58
        return this.informacoesAdicionais;
×
59
    }
60

61
    public NFImpostoDevolvido getImpostoDevolvido() {
UNCOV
62
        return this.impostoDevolvido;
×
63
    }
64

65
    public void setImpostoDevolvido(final NFImpostoDevolvido impostoDevolvido) {
66
        this.impostoDevolvido = impostoDevolvido;
1✔
67
    }
1✔
68
}
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