• 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

50.0
/src/main/java/com/fincatto/documentofiscal/nfe310/classes/nota/NFNotaInfoItemImpostoCOFINSST.java
1
package com.fincatto.documentofiscal.nfe310.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 NFNotaInfoItemImpostoCOFINSST extends DFBase {
10
    private static final long serialVersionUID = -5116872172037197633L;
11

12
    @Element(name = "vBC", required = false)
13
    private String valorBaseCalculo;
14

15
    @Element(name = "pCOFINS", required = false)
16
    private String percentualAliquota;
17

18
    @Element(name = "qBCProd", required = false)
19
    private String quantidadeVendida;
20

21
    @Element(name = "vAliqProd", required = false)
22
    private String valorAliquotaCOFINS;
23
    
24
    @Element(name = "vCOFINS")
25
    private String valorCOFINS;
26

27
    public NFNotaInfoItemImpostoCOFINSST() {
1✔
28
        this.valorBaseCalculo = null;
1✔
29
        this.percentualAliquota = null;
1✔
30
        this.quantidadeVendida = null;
1✔
31
        this.valorAliquotaCOFINS = null;
1✔
32
        this.valorCOFINS = null;
1✔
33
    }
1✔
34

35
    public void setValorBaseCalculo(final BigDecimal valorBaseCalculo) {
36
        if (this.quantidadeVendida != null || this.valorAliquotaCOFINS != null) {
1✔
UNCOV
37
            throw new IllegalStateException("Ja foi setado quantidade vendida ou valor aliquota COFINS");
×
38
        }
39
        this.valorBaseCalculo = DFBigDecimalValidador.tamanho15Com2CasasDecimais(valorBaseCalculo, "Valor Base Calculo COFINS ST Item");
1✔
40
    }
1✔
41

42
    public void setPercentualAliquota(final BigDecimal aliquota) {
43
        if (this.quantidadeVendida != null || this.valorAliquotaCOFINS != null) {
1✔
UNCOV
44
            throw new IllegalStateException("Ja foi setado quantidade vendida ou valor aliquota COFINS");
×
45
        }
46
        this.percentualAliquota = DFBigDecimalValidador.tamanho7ComAte4CasasDecimais(aliquota, "Aliquota COFINS ST Item");
1✔
47
    }
1✔
48

49
    public void setQuantidadeVendida(final BigDecimal quantidadeVendida) {
UNCOV
50
        if (this.valorBaseCalculo != null || this.percentualAliquota != null) {
×
UNCOV
51
            throw new IllegalStateException("Ja foi setado valor da base de calculo ou percentual aliquota COFINS");
×
52
        }
UNCOV
53
        this.quantidadeVendida = DFBigDecimalValidador.tamanho16ComAte4CasasDecimais(quantidadeVendida, "Quantidade COFINS ST Item");
×
UNCOV
54
    }
×
55

56
    public void setValorAliquotaCOFINS(final BigDecimal valorAliquota) {
UNCOV
57
        if (this.valorBaseCalculo != null || this.percentualAliquota != null) {
×
UNCOV
58
            throw new IllegalStateException("Ja foi setado valor da base de calculo ou percentual aliquota COFINS");
×
59
        }
UNCOV
60
        this.valorAliquotaCOFINS = DFBigDecimalValidador.tamanho15Com4CasasDecimais(valorAliquota, "Valor Aliquota COFINS ST Item");
×
UNCOV
61
    }
×
62

63
    public void setValorCOFINS(final BigDecimal valorTributo) {
64
        this.valorCOFINS = DFBigDecimalValidador.tamanho15Com2CasasDecimais(valorTributo, "Valor Tributo COFINS ST Item");
1✔
65
    }
1✔
66

67
    public String getValorBaseCalculo() {
UNCOV
68
        return this.valorBaseCalculo;
×
69
    }
70

71
    public String getPercentualAliquota() {
UNCOV
72
        return this.percentualAliquota;
×
73
    }
74

75
    public String getQuantidadeVendida() {
UNCOV
76
        return this.quantidadeVendida;
×
77
    }
78

79
    public String getValorAliquotaCOFINS() {
UNCOV
80
        return this.valorAliquotaCOFINS;
×
81
    }
82

83
    public String getValorCOFINS() {
UNCOV
84
        return this.valorCOFINS;
×
85
    }
86
}
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