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

wmixvideo / nfe / #6844

13 Oct 2025 01:26PM UTC coverage: 52.219% (+0.06%) from 52.162%
#6844

push

fincatto
Removido validacao de set de CPF e CNPJ.

0 of 5 new or added lines in 1 file covered. (0.0%)

1 existing line in 1 file now uncovered.

14543 of 27850 relevant lines covered (52.22%)

0.52 hits per line

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

0.0
/src/main/java/com/fincatto/documentofiscal/nfe400/classes/evento/epec/NFInfoEventoEpec.java
1
package com.fincatto.documentofiscal.nfe400.classes.evento.epec;
2

3
import com.fincatto.documentofiscal.DFAmbiente;
4
import com.fincatto.documentofiscal.DFBase;
5
import com.fincatto.documentofiscal.DFUnidadeFederativa;
6
import com.fincatto.documentofiscal.validadores.DFBigDecimalValidador;
7
import com.fincatto.documentofiscal.validadores.DFIntegerValidador;
8
import com.fincatto.documentofiscal.validadores.DFStringValidador;
9
import org.simpleframework.xml.Attribute;
10
import org.simpleframework.xml.Element;
11

12
import java.math.BigDecimal;
13
import java.time.ZonedDateTime;
14

15

16
public class NFInfoEventoEpec extends DFBase {
×
17

18
    @Attribute(name = "Id", required = true)
19
    private String identificador;
20

21
    @Element(name = "cOrgao", required = true)
22
    private DFUnidadeFederativa orgao;
23

24
    @Element(name = "tpAmb", required = true)
25
    private DFAmbiente ambiente;
26

27
    @Element(name = "CNPJ", required = false)
28
    private String cnpj;
29

30
    @Element(name = "CPF", required = false)
31
    private String cpf;
32

33
    @Element(name = "chNFe", required = true)
34
    private String chave;
35

36
    @Element(name = "dhEvento", required = true)
37
    private ZonedDateTime dataHoraEvento;
38

39
    @Element(name = "tpEvento", required = true)
40
    private String codigoEvento;
41

42
    @Element(name = "nSeqEvento", required = true)
43
    private Integer numeroSequencialEvento;
44

45
    @Element(name = "verEvento", required = true)
46
    private String versaoEvento;
47

48
    @Element(name = "detEvento", required = true)
49
    private NFInfoEpec epec;
50

51
    public void setOrgao(final DFUnidadeFederativa orgao) {
52
        this.orgao = orgao;
×
53
    }
×
54

55
    public void setVersaoEvento(final BigDecimal versaoEvento) {
56
        this.versaoEvento = DFBigDecimalValidador.tamanho5Com2CasasDecimais(versaoEvento, "Versao do Evento");
×
57
    }
×
58

59
    public String getIdentificador() {
60
        return this.identificador;
×
61
    }
62

63
    public void setIdentificador(final String identificador) {
64
        DFStringValidador.exatamente54(identificador, "Info Evento Conting\u00eancia EPEC ID");
×
65
        this.identificador = identificador;
×
66
    }
×
67

68
    public DFAmbiente getAmbiente() {
69
        return this.ambiente;
×
70
    }
71

72
    public void setAmbiente(final DFAmbiente ambiente) {
73
        this.ambiente = ambiente;
×
74
    }
×
75

76
    public String getCnpj() {
77
        return this.cnpj;
×
78
    }
79

80
    public void setCnpj(final String cnpj) {
81
        DFStringValidador.cnpj(cnpj);
×
82
        this.cnpj = cnpj;
×
83
    }
×
84

85
    public String getCpf() {
86
        return this.cpf;
×
87
    }
88

89
    public void setCpf(final String cpf) {
90
        DFStringValidador.cpf(cpf);
×
91
        this.cpf = cpf;
×
92
    }
×
93

94
    public String getChave() {
95
        return this.chave;
×
96
    }
97

98
    public void setChave(final String chave) {
99
        DFStringValidador.exatamente44N(chave, "Info Evento Conting\u00eancia EPEC Chave");
×
100
        this.chave = chave;
×
101
    }
×
102

103
    public ZonedDateTime getDataHoraEvento() {
104
        return this.dataHoraEvento;
×
105
    }
106

107
    public void setDataHoraEvento(final ZonedDateTime dataHoraEvento) {
108
        this.dataHoraEvento = dataHoraEvento;
×
109
    }
×
110

111
    public String getCodigoEvento() {
112
        return this.codigoEvento;
×
113
    }
114

115
    public void setCodigoEvento(final String codigoEvento) {
116
        DFStringValidador.exatamente6N(codigoEvento, "Info Evento Conting\u00eancia EPEC Codigo");
×
117
        this.codigoEvento = codigoEvento;
×
118
    }
×
119

120
    public int getNumeroSequencialEvento() {
121
        return this.numeroSequencialEvento;
×
122
    }
123

124
    public void setNumeroSequencialEvento(final Integer numeroSequencialEvento) {
125
        DFIntegerValidador.tamanho1a2(numeroSequencialEvento, "Numero Sequencial Evento");
×
126
        this.numeroSequencialEvento = numeroSequencialEvento;
×
127
    }
×
128

129
    public String getVersaoEvento() {
130
        return this.versaoEvento;
×
131
    }
132

133
    public void setVersaoEvento(String versaoEvento) {
NEW
134
        this.versaoEvento = versaoEvento;
×
NEW
135
    }
×
136

137
    public NFInfoEpec getEpec() {
NEW
138
        return epec;
×
139
    }
140

141
    public void setEpec(final NFInfoEpec epec) {
NEW
142
        this.epec = epec;
×
NEW
143
    }
×
144

145
    public DFUnidadeFederativa getOrgao() {
146
        return this.orgao;
×
147
    }
148
}
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