• 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

82.35
/src/main/java/com/fincatto/documentofiscal/nfe400/classes/nota/NFNotaInfoItemImpostoIPI.java
1
package com.fincatto.documentofiscal.nfe400.classes.nota;
2

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

8
import java.math.BigInteger;
9

10
public class NFNotaInfoItemImpostoIPI extends DFBase {
11
    private static final long serialVersionUID = 3354365738012803301L;
12

13
    @Element(name = "CNPJProd", required = false)
14
    private String cnpjProdutor;
15

16
    @Element(name = "cSelo", required = false)
17
    private String codigoSelo;
18

19
    @Element(name = "qSelo", required = false)
20
    private BigInteger quantidadeSelo;
21
    
22
    @Element(name = "cEnq")
23
    private String codigoEnquadramento;
24

25
    @Element(name = "IPITrib", required = false)
26
    private NFNotaInfoItemImpostoIPITributado tributado;
27

28
    @Element(name = "IPINT", required = false)
29
    private NFNotaInfoItemImpostoIPINaoTributado naoTributado;
30

31
    public NFNotaInfoItemImpostoIPI() {
1✔
32
        this.cnpjProdutor = null;
1✔
33
        this.codigoSelo = null;
1✔
34
        this.quantidadeSelo = null;
1✔
35
        this.codigoEnquadramento = null;
1✔
36
        this.tributado = null;
1✔
37
        this.naoTributado = null;
1✔
38
    }
1✔
39

40
    public void setCnpjProdutor(final String cnpjProdutor) {
41
        DFStringValidador.cnpj(cnpjProdutor);
1✔
42
        this.cnpjProdutor = cnpjProdutor;
1✔
43
    }
1✔
44

45
    public void setCodigoSelo(final String codigoSelo) {
46
        DFStringValidador.tamanho60(codigoSelo, "Codigo Selo IPI Item");
1✔
47
        this.codigoSelo = codigoSelo;
1✔
48
    }
1✔
49

50
    public void setQuantidadeSelo(final BigInteger quantidadeSelo) {
51
        DFBigIntegerValidador.tamanho12(quantidadeSelo, "Quantidade Selo IPI Item");
1✔
52
        this.quantidadeSelo = quantidadeSelo;
1✔
53
    }
1✔
54

55
    public void setCodigoEnquadramento(final String codigoEnquadramento) {
56
        DFStringValidador.exatamente3(codigoEnquadramento, "Codigo Enquadramento IPI Item");
1✔
57
        this.codigoEnquadramento = codigoEnquadramento;
1✔
58
    }
1✔
59

60
    public void setTributado(final NFNotaInfoItemImpostoIPITributado tributado) {
61
        if (this.naoTributado != null) {
1✔
62
            throw new IllegalStateException("IPI tributado e nao tributado sao mutuamente exclusivos");
1✔
63
        }
64
        this.tributado = tributado;
1✔
65
    }
1✔
66

67
    public void setNaoTributado(final NFNotaInfoItemImpostoIPINaoTributado naoTributado) {
68
        if (this.tributado != null) {
1✔
69
            throw new IllegalStateException("IPI tributado e nao tributado sao mutuamente exclusivos");
1✔
70
        }
71
        this.naoTributado = naoTributado;
1✔
72
    }
1✔
73

74
    public String getCnpjProdutor() {
UNCOV
75
        return this.cnpjProdutor;
×
76
    }
77

78
    public String getCodigoSelo() {
UNCOV
79
        return this.codigoSelo;
×
80
    }
81

82
    public BigInteger getQuantidadeSelo() {
UNCOV
83
        return this.quantidadeSelo;
×
84
    }
85

86
    public String getCodigoEnquadramento() {
UNCOV
87
        return this.codigoEnquadramento;
×
88
    }
89

90
    public NFNotaInfoItemImpostoIPITributado getTributado() {
UNCOV
91
        return this.tributado;
×
92
    }
93

94
    public NFNotaInfoItemImpostoIPINaoTributado getNaoTributado() {
UNCOV
95
        return this.naoTributado;
×
96
    }
97
}
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