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

wmixvideo / nfe / #9665

31 Aug 2026 12:30PM UTC coverage: 51.298% (+0.3%) from 51.007%
#9665

push

web-flow
Implementação migração do Axis2 para Httpclient5 - Todos modulos documentos fiscais (#1184)

* Javadoc Warnings invalid input: '<' e '&' literais

* Javadoc Warnings invalid input: '<' e '&' literais

* Refatoração de chaves para suportar CNPJ alfanumérico (NT 2026.004)

* Normaliza char para maiusculo na chave

O cálculo do DV usa valores[i - 1] - '0'. Se a chave vier com letras minúsculas (o que é aceito por alguns validadores de CNPJ na base), o DV calculado muda (ex.: 'a' - '0' != 'A' - '0'), gerando falsos negativos/positivos. Normalize o caractere para maiúsculo antes de converter para o valor numérico.

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

* Remove unused Javadoc references from stub classes
[Javadoc Warnings Tag @see: reference not found

* Implementa DFHttpClient e DFSoapEnvelope para migração do Axis2 para
httpclient5

* Add extra hardening against XXE in DFSoapEnvelope

* Clarify timeout mapping in DFHttpClient to maintain compatibility with
Axis2

* Add unit tests for DFHttpClient to validate SOAP request handling

* Add author annotations

* Alinhar o mapeamento de timeout no DFHttpClient

* Implementação migração do Axis2 para Httpclient5 - Envio Lote

* Migrate web services from Axis2 to HttpClient5 to nfe

* Add exception handling for HTTP client initialization in
WSDistribuicaoNFe

* Refactor web service methods to include specific exception handling for
IOException and DFSoapFaultException

* Add specific exception handling for IOException and DFSoapFaultException
in web service methods

* Implement Closeable interface for web service classes and add close
method to manage HTTP client connections

* Add unit tests for WSFacade to verify construction and closure behavior
after migration to HttpClient5

* Add connection management settings to DFHttpClient to mitigate
keep-alive issues

* Handle null HttpEntity in DFHttpClient response processing to prevent
NullPointerException

* E... (continued)

184 of 265 new or added lines in 21 files covered. (69.43%)

9 existing lines in 8 files now uncovered.

15291 of 29808 relevant lines covered (51.3%)

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/utils/DFEventoNaoProcessadoException.java
1
package com.fincatto.documentofiscal.utils;
2

3
/**
4
 * Lancada quando a SEFAZ responde a um envio de evento com status diferente de
5
 * "Lote de Evento Processado", expondo o codigo e o motivo devolvidos para que o
6
 * chamador possa trata-los programaticamente, sem parsear a mensagem.
7
 */
8
public class DFEventoNaoProcessadoException extends RuntimeException {
9

10
    private static final long serialVersionUID = 1L;
11

12
    private final int codigoStatus;
13
    private final String motivo;
14

15
    public DFEventoNaoProcessadoException(final int codigoStatus, final String motivo) {
NEW
16
        super("Status: " + codigoStatus + " - Motivo: " + motivo);
×
NEW
17
        this.codigoStatus = codigoStatus;
×
NEW
18
        this.motivo = motivo;
×
NEW
19
    }
×
20

21
    public int getCodigoStatus() {
NEW
22
        return this.codigoStatus;
×
23
    }
24

25
    public String getMotivo() {
NEW
26
        return this.motivo;
×
27
    }
28
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc