• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

wmixvideo / nfe / #6266

21 Mar 2025 11:46AM UTC coverage: 52.671% (+25.7%) from 26.996%
#6266

push

luciano.antunes
Nota Fiscal Fácil

0 of 21 new or added lines in 2 files covered. (0.0%)

2924 existing lines in 401 files now uncovered.

14002 of 26584 relevant lines covered (52.67%)

0.53 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

87.23
/src/main/java/com/fincatto/documentofiscal/nfe400/classes/nota/NFNotaInfoItemImposto.java
1
package com.fincatto.documentofiscal.nfe400.classes.nota;
2

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

9
import java.lang.reflect.InvocationTargetException;
10
import java.math.BigDecimal;
11

12
public class NFNotaInfoItemImposto extends DFBase {
1✔
13
    private static final long serialVersionUID = 8579628067567740408L;
14

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

18
    @Element(name = "ICMS", required = false)
19
    private NFNotaInfoItemImpostoICMS icms;
20

21
    @Element(name = "IPI", required = false)
22
    private NFNotaInfoItemImpostoIPI ipi;
23

24
    @Element(name = "II", required = false)
25
    private NFNotaInfoItemImpostoImportacao impostoImportacao;
26

27
    @Element(name = "ISSQN", required = false)
28
    private NFNotaInfoItemImpostoISSQN issqn;
29

30
    @Element(name = "PIS", required = false)
31
    private NFNotaInfoItemImpostoPIS pis;
32

33
    @Element(name = "PISST", required = false)
34
    private NFNotaInfoItemImpostoPISST pisst;
35

36
    @Element(name = "COFINS", required = false)
37
    private NFNotaInfoItemImpostoCOFINS cofins;
38

39
    @Element(name = "COFINSST", required = false)
40
    private NFNotaInfoItemImpostoCOFINSST cofinsst;
41

42
    @Element(name = "ICMSUFDest", required = false)
43
    private NFNotaInfoItemImpostoICMSUFDestino icmsUfDestino;
44

45
    public void setIcms(final NFNotaInfoItemImpostoICMS icms) {
46
        if (this.issqn != null) {
1✔
47
            throw new IllegalStateException("ICMS, IPI e II sao mutuamente exclusivo com ISSQN");
1✔
48
        }
49
        try {
50
            DFStringValidador.validaPreenchimentoDeMargemValorAgregado(icms);
1✔
UNCOV
51
        }catch (IllegalAccessException e) {
×
UNCOV
52
            DFLog.getLogger(NFNotaInfoItemImposto.class)
×
UNCOV
53
                    .error("Erro ao validar preenchimento de Margem de Valor agregado", e);
×
UNCOV
54
        } catch (InvocationTargetException e) {
×
UNCOV
55
            DFLog.getLogger(NFNotaInfoItemImposto.class)
×
UNCOV
56
                    .error("Erro ao validar preenchimento de Margem de Valor agregado", e);
×
57
        }
1✔
58
        this.icms = icms;
1✔
59
    }
1✔
60

61
    public void setIpi(final NFNotaInfoItemImpostoIPI ipi) {
62
        if (this.issqn != null) {
1✔
63
            throw new IllegalStateException("ICMS, IPI e II sao mutuamente exclusivo com ISSQN");
1✔
64
        }
65
        this.ipi = ipi;
1✔
66
    }
1✔
67

68
    public void setImpostoImportacao(final NFNotaInfoItemImpostoImportacao impostoImportacao) {
69
        if (this.issqn != null) {
1✔
70
            throw new IllegalStateException("ICMS, IPI e II sao mutuamente exclusivo com ISSQN");
1✔
71
        }
72
        this.impostoImportacao = impostoImportacao;
1✔
73
    }
1✔
74

75
    public void setIssqn(final NFNotaInfoItemImpostoISSQN issqn) {
76
        if (this.icms != null || this.ipi != null || this.impostoImportacao != null) {
1✔
77
            throw new IllegalStateException("ICMS, IPI e II sao mutuamente exclusivo com ISSQN");
1✔
78
        }
79
        this.issqn = issqn;
1✔
80
    }
1✔
81

82
    public void setPis(final NFNotaInfoItemImpostoPIS pis) {
83
        this.pis = pis;
1✔
84
    }
1✔
85

86
    public void setPisst(final NFNotaInfoItemImpostoPISST pisst) {
87
        this.pisst = pisst;
1✔
88
    }
1✔
89

90
    public void setCofins(final NFNotaInfoItemImpostoCOFINS cofins) {
91
        this.cofins = cofins;
1✔
92
    }
1✔
93

94
    public void setCofinsst(final NFNotaInfoItemImpostoCOFINSST cofinsst) {
95
        this.cofinsst = cofinsst;
1✔
96
    }
1✔
97

98
    public void setValorTotalTributos(final BigDecimal valorTotalTributos) {
99
        this.valorTotalTributos = DFBigDecimalValidador.tamanho15Com2CasasDecimais(valorTotalTributos, "Valor Total Tributos");
1✔
100
    }
1✔
101

102
    public String getValorTotalTributos() {
103
        return this.valorTotalTributos;
1✔
104
    }
105

106
    public NFNotaInfoItemImpostoICMS getIcms() {
107
        return this.icms;
1✔
108
    }
109

110
    public NFNotaInfoItemImpostoIPI getIpi() {
111
        return this.ipi;
1✔
112
    }
113

114
    public NFNotaInfoItemImpostoImportacao getImpostoImportacao() {
115
        return this.impostoImportacao;
1✔
116
    }
117

118
    public NFNotaInfoItemImpostoISSQN getIssqn() {
119
        return this.issqn;
1✔
120
    }
121

122
    public NFNotaInfoItemImpostoPIS getPis() {
123
        return this.pis;
1✔
124
    }
125

126
    public NFNotaInfoItemImpostoPISST getPisst() {
127
        return this.pisst;
1✔
128
    }
129

130
    public NFNotaInfoItemImpostoCOFINS getCofins() {
131
        return this.cofins;
1✔
132
    }
133

134
    public NFNotaInfoItemImpostoCOFINSST getCofinsst() {
135
        return this.cofinsst;
1✔
136
    }
137

138
    public NFNotaInfoItemImpostoICMSUFDestino getIcmsUfDestino() {
139
        return this.icmsUfDestino;
1✔
140
    }
141

142
    public void setIcmsUfDestino(final NFNotaInfoItemImpostoICMSUFDestino icmsUfDestino) {
143
        this.icmsUfDestino = icmsUfDestino;
1✔
144
    }
1✔
145

146
}
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