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

wmixvideo / nfe / #6582

17 Jul 2025 09:30PM UTC coverage: 51.231% (+24.2%) from 26.996%
#6582

push

web-flow
Adequação do mapeamento de infLocalCarrega e infLocalDescarrega ao xs:choice do schema MDF-e (#1054)

* Adequação do mapeamento de infLocalCarrega e infLocalDescarrega ao xs:choice do schema MDF-e

* Adequação do mapeamento de infLocalCarrega e infLocalDescarrega ao xs:choice do schema MDF-e

14006 of 27339 relevant lines covered (51.23%)

0.51 hits per line

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

68.42
/src/main/java/com/fincatto/documentofiscal/cte200/classes/CTTomadorServico.java
1
package com.fincatto.documentofiscal.cte200.classes;
2

3
import java.util.Arrays;
4
import java.util.Collections;
5
import java.util.List;
6

7
public enum CTTomadorServico {
1✔
8

9
    REMETENTE("0", "Remetente"),
1✔
10
    EXPEDIDOR("1", "Expedidor"),
1✔
11
    RECEBEDOR("2", "Recebedor"),
1✔
12
    DESTINATARIO("3", "Destinata\u0301rio"),
1✔
13
    OUTROS("4", "Outros");
1✔
14

15
    public static final List<CTTomadorServico> TOMADOR_3 = Arrays.asList(CTTomadorServico.REMETENTE, CTTomadorServico.EXPEDIDOR, CTTomadorServico.RECEBEDOR, CTTomadorServico.DESTINATARIO);
1✔
16
    public static final List<CTTomadorServico> TOMADOR_4 = Collections.singletonList(CTTomadorServico.OUTROS);
1✔
17

18
    private final String codigo;
19
    private final String descricao;
20

21
    CTTomadorServico(final String codigo, final String descricao) {
1✔
22
        this.codigo = codigo;
1✔
23
        this.descricao = descricao;
1✔
24
    }
1✔
25

26
    public String getCodigo() {
27
        return this.codigo;
1✔
28
    }
29

30
    public String getDescricao() {
31
        return this.descricao;
×
32
    }
33

34
    public static CTTomadorServico valueOfCodigo(final String codigo) {
35
        for (final CTTomadorServico formaPagamento : CTTomadorServico.values()) {
×
36
            if (formaPagamento.getCodigo().equals(codigo)) {
×
37
                return formaPagamento;
×
38
            }
39
        }
40
        return null;
×
41
    }
42

43
    @Override
44
    public String toString() {
45
        return this.codigo + " - " + this.descricao;
×
46
    }
47
}
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