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

wmixvideo / nfe / #7320

24 Jun 2025 02:03AM UTC coverage: 51.463% (+1.1%) from 50.377%
#7320

push

web-flow
Merge 80a657e41 into bb9f583b3

14 of 20 new or added lines in 1 file covered. (70.0%)

812 existing lines in 45 files now uncovered.

14018 of 27239 relevant lines covered (51.46%)

0.51 hits per line

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

0.0
/src/main/java/com/fincatto/documentofiscal/cte300/classes/evento/CTeInfoEvento.java
1
package com.fincatto.documentofiscal.cte300.classes.evento;
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.DFIntegerValidador;
7
import com.fincatto.documentofiscal.validadores.DFStringValidador;
8
import org.simpleframework.xml.Attribute;
9
import org.simpleframework.xml.Element;
10

11
import java.time.ZonedDateTime;
12

13
public class CTeInfoEvento extends DFBase {
×
14
    private static final long serialVersionUID = 4495040029270775685L;
15

16
    @Attribute(name = "Id", required = false)
17
    private String id;
18

19
    @Element(name = "cOrgao", required = false)
20
    private DFUnidadeFederativa orgao;
21
    
22
    @Element(name = "tpAmb")
23
    private DFAmbiente ambiente;
24

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

28
    @Element(name = "CPF", required = false)
29
    private String cpf;
30
    
31
    @Element(name = "chCTe")
32
    private String chave;
33
    
34
    @Element(name = "dhEvento")
35
    private ZonedDateTime dataHoraEvento;
36
    
37
    @Element(name = "tpEvento")
38
    private String codigoEvento;
39
    
40
    @Element(name = "nSeqEvento")
41
    private Integer numeroSequencialEvento;
42

43
    @Element(name = "detEvento")
44
    private CTeDetalhamentoEvento detalheEvento;
45

46
    public void setOrgao(final DFUnidadeFederativa orgao) {
47
        this.orgao = orgao;
×
48
    }
×
49

50
    public String getId() {
51
        return this.id;
×
52
    }
53

54
    public void setId(final String id) {
55
        DFStringValidador.exatamente54(id, "Info Evento ID");
×
56
        this.id = id;
×
57
    }
×
58

59
    public DFAmbiente getAmbiente() {
60
        return this.ambiente;
×
61
    }
62

63
    public void setAmbiente(final DFAmbiente ambiente) {
64
        this.ambiente = ambiente;
×
65
    }
×
66

67
    public String getCnpj() {
68
        return this.cnpj;
×
69
    }
70

71
    public void setCnpj(final String cnpj) {
72
        if (this.cpf != null) {
×
73
            throw new IllegalStateException("CPF ja foi setado");
×
74
        }
UNCOV
75
        DFStringValidador.cnpj(cnpj);
×
UNCOV
76
        this.cnpj = cnpj;
×
77
    }
×
78

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

83
    public void setCpf(final String cpf) {
UNCOV
84
        if (this.cnpj != null) {
×
UNCOV
85
            throw new IllegalStateException("CNPJ ja foi setado");
×
86
        }
UNCOV
87
        DFStringValidador.cpf(cpf);
×
UNCOV
88
        this.cpf = cpf;
×
UNCOV
89
    }
×
90

91
    public String getChave() {
92
        return this.chave;
×
93
    }
94

95
    public void setChave(final String chave) {
UNCOV
96
        DFStringValidador.exatamente44N(chave, "Info Evento Chave");
×
UNCOV
97
        this.chave = chave;
×
UNCOV
98
    }
×
99

100
    public ZonedDateTime getDataHoraEvento() {
UNCOV
101
        return this.dataHoraEvento;
×
102
    }
103

104
    public void setDataHoraEvento(final ZonedDateTime dataHoraEvento) {
UNCOV
105
        this.dataHoraEvento = dataHoraEvento;
×
UNCOV
106
    }
×
107

108
    public String getCodigoEvento() {
109
        return this.codigoEvento;
×
110
    }
111

112
    public void setCodigoEvento(final String codigoEvento) {
UNCOV
113
        DFStringValidador.exatamente6N(codigoEvento, "Info Evento Codigo");
×
UNCOV
114
        this.codigoEvento = codigoEvento;
×
UNCOV
115
    }
×
116

117
    public int getNumeroSequencialEvento() {
118
        return this.numeroSequencialEvento;
×
119
    }
120

121
    public void setNumeroSequencialEvento(final int numeroSequencialEvento) {
UNCOV
122
        DFIntegerValidador.tamanho1a2(numeroSequencialEvento, "Numero Sequencial Evento");
×
UNCOV
123
        this.numeroSequencialEvento = numeroSequencialEvento;
×
UNCOV
124
    }
×
125

126
    public DFUnidadeFederativa getOrgao() {
UNCOV
127
        return this.orgao;
×
128
    }
129

130
    public void setNumeroSequencialEvento(final Integer numeroSequencialEvento) {
UNCOV
131
        this.numeroSequencialEvento = numeroSequencialEvento;
×
UNCOV
132
    }
×
133

134
    public CTeDetalhamentoEvento getDetalheEvento() {
UNCOV
135
        return this.detalheEvento;
×
136
    }
137

138
    public void setDetalheEvento(final CTeDetalhamentoEvento detalheEvento) {
UNCOV
139
        this.detalheEvento = detalheEvento;
×
UNCOV
140
    }
×
141
}
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