• 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.78
/src/main/java/com/fincatto/documentofiscal/nfe400/classes/nota/NFNotaInfoItemImpostoImportacao.java
1
package com.fincatto.documentofiscal.nfe400.classes.nota;
2

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

7
import java.math.BigDecimal;
8

9
public class NFNotaInfoItemImpostoImportacao extends DFBase {
10
    private static final long serialVersionUID = 4211590418053438276L;
11
    
12
    @Element(name = "vBC")
13
    private String valorBaseCalculo;
14
    
15
    @Element(name = "vDespAdu")
16
    private String valorDespesaAduaneira;
17
    
18
    @Element(name = "vII")
19
    private String valorImpostoImportacao;
20
    
21
    @Element(name = "vIOF")
22
    private String valorIOF;
23

24
    public NFNotaInfoItemImpostoImportacao() {
1✔
25
        this.valorBaseCalculo = null;
1✔
26
        this.valorDespesaAduaneira = null;
1✔
27
        this.valorImpostoImportacao = null;
1✔
28
        this.valorIOF = null;
1✔
29
    }
1✔
30

31
    public void setValorBaseCalculo(final BigDecimal valorBaseCalculo) {
32
        this.valorBaseCalculo = DFBigDecimalValidador.tamanho15Com2CasasDecimais(valorBaseCalculo, "Valor BC Importacao Item");
1✔
33
    }
1✔
34

35
    public void setValorDespesaAduaneira(final BigDecimal valorDespesaAduaneira) {
36
        this.valorDespesaAduaneira = DFBigDecimalValidador.tamanho15Com2CasasDecimais(valorDespesaAduaneira, "Valor Despesa Aduaneira Importacao Item");
1✔
37
    }
1✔
38

39
    public void setValorImpostoImportacao(final BigDecimal valorImpostoImportacao) {
40
        this.valorImpostoImportacao = DFBigDecimalValidador.tamanho15Com2CasasDecimais(valorImpostoImportacao, "Valor Imposto Importacao Item");
1✔
41
    }
1✔
42

43
    public void setValorIOF(final BigDecimal valorIOF) {
44
        this.valorIOF = DFBigDecimalValidador.tamanho15Com2CasasDecimais(valorIOF, "Valor IOF Importacao Item");
1✔
45
    }
1✔
46

47
    public String getValorBaseCalculo() {
UNCOV
48
        return this.valorBaseCalculo;
×
49
    }
50

51
    public String getValorDespesaAduaneira() {
UNCOV
52
        return this.valorDespesaAduaneira;
×
53
    }
54

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

59
    public String getValorIOF() {
UNCOV
60
        return this.valorIOF;
×
61
    }
62
}
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