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

wmixvideo / nfe / #6649

15 Jan 2016 07:08PM UTC coverage: 80.525% (-0.4%) from 80.934%
#6649

push

travis-ci

jefperito
Corrigido testes

Corrigido testes (eclipse cacheou os xsd e houve um problema de testes)

4445 of 5520 relevant lines covered (80.53%)

50.77 hits per line

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

62.3
/src/main/java/com/fincatto/nfe310/classes/nota/NFNotaInfo.java
1
package com.fincatto.nfe310.classes.nota;
2

3
import java.math.BigDecimal;
4
import java.text.MessageFormat;
5
import java.util.List;
6

7
import org.simpleframework.xml.Attribute;
8
import org.simpleframework.xml.Element;
9
import org.simpleframework.xml.ElementList;
10
import org.simpleframework.xml.Namespace;
11
import org.simpleframework.xml.Root;
12

13
import com.fincatto.nfe310.classes.NFBase;
14
import com.fincatto.nfe310.validadores.BigDecimalParser;
15
import com.fincatto.nfe310.validadores.ListValidador;
16
import com.fincatto.nfe310.validadores.StringValidador;
17

18
@Root(name = "infNFe")
19
@Namespace(reference = "http://www.portalfiscal.inf.br/nfe")
20
public class NFNotaInfo extends NFBase {
35✔
21

22
    @Attribute(name = "Id", required = true)
23
    private String identificador;
24

25
    @Attribute(name = "versao", required = true)
26
    private String versao;
27

28
    @Element(name = "ide", required = true)
29
    private NFNotaInfoIdentificacao identificacao;
30

31
    @Element(name = "emit", required = true)
32
    private NFNotaInfoEmitente emitente;
33

34
    @Element(name = "avulsa", required = false)
35
    private NFNotaInfoAvulsa avulsa;
36

37
    @Element(name = "dest", required = false)
38
    private NFNotaInfoDestinatario destinatario;
39

40
    @Element(name = "retirada", required = false)
41
    private NFNotaInfoLocal retirada;
42

43
    @Element(name = "entrega", required = false)
44
    private NFNotaInfoLocal entrega;
45

46
    @ElementList(entry = "autXML", inline = true, required = false)
47
    private List<NFPessoaAutorizadaDownloadNFe> pessoasAutorizadasDownloadNFe;
48

49
    @ElementList(entry = "det", inline = true, required = true)
50
    private List<NFNotaInfoItem> itens;
51

52
    @Element(name = "total", required = true)
53
    private NFNotaInfoTotal total;
54

55
    @Element(name = "transp", required = true)
56
    private NFNotaInfoTransporte transporte;
57

58
    @Element(name = "cobr", required = false)
59
    private NFNotaInfoCobranca cobranca;
60

61
    @ElementList(entry = "pag", required = false)
62
    private List<NFNotaInfoPagamento> pagamentos;
63

64
    @Element(name = "infAdic", required = false)
65
    private NFNotaInfoInformacoesAdicionais informacoesAdicionais;
66

67
    @Element(name = "exporta", required = false)
68
    private NFNotaInfoExportacao exportacao;
69

70
    @Element(name = "compra", required = false)
71
    private NFNotaInfoCompra compra;
72

73
    @Element(name = "cana", required = false)
74
    private NFNotaInfoCana cana;
75

76
    public void setIdentificador(final String identificador) {
77
        StringValidador.exatamente44N(identificador);
29✔
78
        this.identificador = MessageFormat.format("NFe{0}", identificador);
27✔
79
    }
27✔
80

81
    public String getIdentificador() {
82
        return this.identificador;
×
83
    }
84

85
    public void setVersao(final BigDecimal versao) {
86
        this.versao = BigDecimalParser.tamanho4Com2CasasDecimais(versao);
28✔
87
    }
27✔
88

89
    public NFNotaInfoIdentificacao getIdentificacao() {
90
        return this.identificacao;
×
91
    }
92

93
    public void setIdentificacao(final NFNotaInfoIdentificacao identificacao) {
94
        this.identificacao = identificacao;
27✔
95
    }
27✔
96

97
    public void setEmitente(final NFNotaInfoEmitente emitente) {
98
        this.emitente = emitente;
27✔
99
    }
27✔
100

101
    public void setAvulsa(final NFNotaInfoAvulsa avulsa) {
102
        this.avulsa = avulsa;
27✔
103
    }
27✔
104

105
    public NFNotaInfoDestinatario getDestinatario() {
106
        return this.destinatario;
×
107
    }
108

109
    public void setDestinatario(final NFNotaInfoDestinatario destinatario) {
110
        this.destinatario = destinatario;
27✔
111
    }
27✔
112

113
    public void setItens(final List<NFNotaInfoItem> itens) {
114
        ListValidador.tamanho990(itens);
27✔
115
        this.itens = itens;
27✔
116
    }
27✔
117

118
    public void setRetirada(final NFNotaInfoLocal retirada) {
119
        this.retirada = retirada;
27✔
120
    }
27✔
121

122
    public void setEntrega(final NFNotaInfoLocal entrega) {
123
        this.entrega = entrega;
27✔
124
    }
27✔
125

126
    public void setCobranca(final NFNotaInfoCobranca cobranca) {
127
        this.cobranca = cobranca;
27✔
128
    }
27✔
129

130
    public void setTotal(final NFNotaInfoTotal total) {
131
        this.total = total;
27✔
132
    }
27✔
133

134
    public void setTransporte(final NFNotaInfoTransporte transporte) {
135
        this.transporte = transporte;
27✔
136
    }
27✔
137

138
    public void setInformacoesAdicionais(final NFNotaInfoInformacoesAdicionais informacoesAdicionais) {
139
        this.informacoesAdicionais = informacoesAdicionais;
27✔
140
    }
27✔
141

142
    public void setExportacao(final NFNotaInfoExportacao exportacao) {
143
        this.exportacao = exportacao;
27✔
144
    }
27✔
145

146
    public void setCompra(final NFNotaInfoCompra compra) {
147
        this.compra = compra;
27✔
148
    }
27✔
149

150
    public void setCana(final NFNotaInfoCana cana) {
151
        this.cana = cana;
27✔
152
    }
27✔
153

154
    public void setPessoasAutorizadasDownloadNFe(final List<NFPessoaAutorizadaDownloadNFe> pessoasAutorizadasDownloadNFe) {
155
        ListValidador.tamanho10(pessoasAutorizadasDownloadNFe);
28✔
156
        this.pessoasAutorizadasDownloadNFe = pessoasAutorizadasDownloadNFe;
28✔
157
    }
28✔
158

159
    public void setPagamentos(final List<NFNotaInfoPagamento> pagamentos) {
160
        ListValidador.tamanho100(pagamentos);
×
161
        this.pagamentos = pagamentos;
×
162
    }
×
163

164
    public String getVersao() {
165
        return this.versao;
×
166
    }
167

168
    public void setVersao(final String versao) {
169
        this.versao = versao;
×
170
    }
×
171

172
    public NFNotaInfoEmitente getEmitente() {
173
        return this.emitente;
×
174
    }
175

176
    public NFNotaInfoAvulsa getAvulsa() {
177
        return this.avulsa;
×
178
    }
179

180
    public NFNotaInfoLocal getRetirada() {
181
        return this.retirada;
×
182
    }
183

184
    public NFNotaInfoLocal getEntrega() {
185
        return this.entrega;
×
186
    }
187

188
    public List<NFPessoaAutorizadaDownloadNFe> getPessoasAutorizadasDownloadNFe() {
189
        return this.pessoasAutorizadasDownloadNFe;
×
190
    }
191

192
    public List<NFNotaInfoItem> getItens() {
193
        return this.itens;
×
194
    }
195

196
    public NFNotaInfoTotal getTotal() {
197
        return this.total;
×
198
    }
199

200
    public NFNotaInfoTransporte getTransporte() {
201
        return this.transporte;
×
202
    }
203

204
    public NFNotaInfoCobranca getCobranca() {
205
        return this.cobranca;
×
206
    }
207

208
    public List<NFNotaInfoPagamento> getPagamentos() {
209
        return this.pagamentos;
×
210
    }
211

212
    public NFNotaInfoInformacoesAdicionais getInformacoesAdicionais() {
213
        return this.informacoesAdicionais;
×
214
    }
215

216
    public NFNotaInfoExportacao getExportacao() {
217
        return this.exportacao;
×
218
    }
219

220
    public NFNotaInfoCompra getCompra() {
221
        return this.compra;
×
222
    }
223

224
    public NFNotaInfoCana getCana() {
225
        return this.cana;
×
226
    }
227
}
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

© 2025 Coveralls, Inc