• 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

84.21
/src/main/java/com/fincatto/documentofiscal/cte300/classes/CTTomadorServico.java
1
package com.fincatto.documentofiscal.cte300.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", "Destinatário"),
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

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

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

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

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

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

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