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

wmixvideo / nfe / #9106

22 May 2026 12:03PM UTC coverage: 50.605% (+23.6%) from 26.996%
#9106

push

web-flow
feat: suporte a CNPJ alfanumérico em chaves NF-e, CT-e e campos CNPJ (#1165)

* feat: adicionando schema 1.14 para cte 4.00

* feat: removendo validacao de apenas numerico no identificador

* feat: removendo validacao de apenas numerico no identificador

* test: adicionando teste

* test: adicionando teste

* test: adicionando teste

* feat: cnpj, chave de cte e nfe para aceitar alfanumerico

---------

Co-authored-by: Matteus Colins Moreira <matteuscolins@Colinss-MacBook-Pro.local>
Co-authored-by: Matteus Colins <matteusc.moreira@gmail.com>
Co-authored-by: Diego Fincatto <58352+fincatto@users.noreply.github.com>

39 of 84 new or added lines in 75 files covered. (46.43%)

2960 existing lines in 403 files now uncovered.

14856 of 29357 relevant lines covered (50.6%)

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/nota/CTeNotaInfoCTeComplementar.java
1
package com.fincatto.documentofiscal.cte300.classes.nota;
2

3
import com.fincatto.documentofiscal.DFBase;
4
import com.fincatto.documentofiscal.validadores.DFStringValidador;
5
import org.simpleframework.xml.Element;
6
import org.simpleframework.xml.Namespace;
7
import org.simpleframework.xml.Root;
8

9
/**
10
 * @author Caio
11
 * @info Detalhamento do CT-e complementado
12
 */
13

14
@Root(name = "infCteComp")
15
@Namespace(reference = "http://www.portalfiscal.inf.br/cte")
16
public class CTeNotaInfoCTeComplementar extends DFBase {
17
    private static final long serialVersionUID = -5820790322163765078L;
18
    @Element(name = "chCTe")
19
    private String chave;
20

UNCOV
21
    public CTeNotaInfoCTeComplementar() {
×
22
        this.chave = null;
×
23
    }
×
24

25
    public String getChave() {
UNCOV
26
        return this.chave;
×
27
    }
28

29
    /**
30
     * Chave do CT-e complementado
31
     */
32
    public void setChave(final String chave) {
NEW
33
        DFStringValidador.exatamente44(chave, "Chave do CT-e complementado");
×
34
        this.chave = chave;
×
35
    }
×
36
}
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