• 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

43.75
/src/main/java/com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfCIOT.java
1
package com.fincatto.documentofiscal.mdfe3.classes.nota;
2

3
import org.simpleframework.xml.Element;
4

5
import com.fincatto.documentofiscal.DFBase;
6
import com.fincatto.documentofiscal.validadores.DFStringValidador;
7

8
/**
9
 * Created by Eldevan Nery Junior on 01/11/17.
10
 * <h1>Dados do CIOT(Código Identificador da Operação de Transporte)</h1>
11
 */
12
public class MDFInfoModalRodoviarioInfCIOT extends DFBase {
1✔
13
    private static final long serialVersionUID = -493243755664595267L;
14

15
    /**
16
     * <p>
17
     * Código Identificador da Operação de Transporte. Também Conhecido como conta frete
18
     * </p>
19
     */
20
    @Element(name = "CIOT")
21
    private String ciot;
22

23
    /**
24
     * <p>
25
     * Número do CPF responsável pela geração do CIOT.
26
     * </p>
27
     */
28
    @Element(name = "CPF", required = false)
29
    private String cpf;
30

31
    /**
32
     * <p>
33
     * Número do CNPJ responsável pela geração do CIOT.
34
     * </p>
35
     */
36
    @Element(name = "CNPJ", required = false)
37
    private String cnpj;
38

39
    public String getCiot() {
40
        return this.ciot;
×
41
    }
42

43
    public void setCiot(final String ciot) {
44
        this.ciot = DFStringValidador.validador(ciot, "CIOT", 12, true, true);
1✔
45
    }
1✔
46

47
    public String getCpf() {
48
        return this.cpf;
×
49
    }
50

51
    public void setCpf(final String cpf) {
52
        if (this.cnpj != null) {
×
UNCOV
53
            throw new IllegalStateException("Nao deve setar CPF se CNPJ esteja setado em infCIOT");
×
54
        }
55
        DFStringValidador.cpf(cpf);
×
UNCOV
56
        this.cpf = cpf;
×
UNCOV
57
    }
×
58

59
    public String getCnpj() {
60
        return this.cnpj;
×
61
    }
62

63
    public void setCnpj(final String cnpj) {
64
        if (this.cpf != null) {
1✔
UNCOV
65
            throw new IllegalStateException("Nao deve setar CNPJ se CPF esteja setado em infCIOT");
×
66
        }
67
        DFStringValidador.cnpj(cnpj);
1✔
68
        this.cnpj = cnpj;
1✔
69
    }
1✔
70
}
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