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

wmixvideo / nfe / #7947

10 Mar 2026 08:42PM UTC coverage: 50.346% (+23.4%) from 26.996%
#7947

push

web-flow
Mantendo compatibilidade com java 1.8 e tratamento erro Connection or outbound has closed (#1151)

* Removendo ; duplicado e warn serial version

* Mantendo compatibilidade com java 1.8

* Removendo ; duplicado e warn serial version

* Mantendo compatibilidade com java 1.8

* Remove unused import statement

Removed unused import for LocalDate.

* Remove deprecated CST_210 and CST_510 entries

* Remove obsolete CST code assertions from tests

Removed assertions for CST codes 210001, 210002, and 210003 from tests.

* Enhance fromOM method to handle operation response

Resolvendo expection org.apache.axis2.databinding.ADBException: Unexpected subelement {http://www.portalfiscal.inf.br/nfe/wsdl/NFeAutorizacao4}nfeResultMsg

* Enhance fromOM method for better XML parsing

Resolvendo exception org.apache.axis2.databinding.ADBException: Unexpected subelement

Refactor fromOM method to handle child elements for NfeDadosMsg and NfeResultMsg parsing.

* Refactor fromOM method to handle child elements

Resolvendo exception org.apache.axis2.databinding.ADBException: Unexpected subelement

* Mantendo compatibilidade versão java 1.8

* Removendo CST obsoletos

* Removendo tratamento erro ADBException

* Removendo tratamento erro ADBException

* Removendo tratamento erro ADBException

* Desabilitando o uso de transferências chunked nas requisições HTTP
(NFeAutorizacao4Stub ja tem) Resolvendo erro intermitente manifesto
destinatário HTTPSenderImpl:215 - Unable to sendViaPost to
url[https://www.nfe.fazenda.gov.br/NFeRecepcaoEvento4/NFeRecepcaoEvento4.asmx]
org.apache.axis2.AxisFault: Connection or outbound has closed

---------

Co-authored-by: tecnosofti <tecnosofti@amdryzen>
Co-authored-by: Diego Fincatto <58352+fincatto@users.noreply.github.com>

1 of 1 new or added line in 1 file covered. (100.0%)

2969 existing lines in 403 files now uncovered.

14775 of 29347 relevant lines covered (50.35%)

0.5 hits per line

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

97.14
/src/main/java/com/fincatto/documentofiscal/nfe400/classes/NFNotaInfoTipoVeiculo.java
1
package com.fincatto.documentofiscal.nfe400.classes;
2

3
public enum NFNotaInfoTipoVeiculo {
1✔
4

5
    CICLOMOTO("2", "Ciclomotor"),
1✔
6
    MOTONETA("3", "Motoneta"),
1✔
7
    MOTOCICLO("4", "Motociclo"),
1✔
8
    TRICICLO("5", "Triciclo"),
1✔
9
    AUTOMOVEL("6", "Autom\u00f3vel"),
1✔
10
    MICROONIBUS("7", "Micro\u00f4nibus"),
1✔
11
    ONIBUS("8", "\u00d4nibus"),
1✔
12
    REBOQUE("10", "Reboque"),
1✔
13
    SEMIRREBOQUE("11", "Semirreboque"),
1✔
14
    CAMINHONETA("13", "Caminhoneta"),
1✔
15
    CAMINHAO("14", "Caminh\u00e3o"),
1✔
16
    TRATOR("17", "Trator"),
1✔
17
    TRATOR_RODAS("18","Trator rodas"),
1✔
18
    TRATOR_ESTEIRAS("19","Trator esteiras"),
1✔
19
    TRATOR_MISTO("20","Trator misto"),
1✔
20
    QUADRICICLO("21","Quadriciclo"),
1✔
21
    ESP_ONIBUS("22", "Especial \u00d4nibus"),
1✔
22
    CARGA_CAM("24", "Carga"),
1✔
23
    MISTO_CAM("23", "Misto"),
1✔
24
    UTILITARIO("25","Utilit\u00e1rio"),
1✔
25
    MOTOR_CASA("26","Motor Casa");
1✔
26

27
    private final String codigo;
28
    private final String descricao;
29

30
    NFNotaInfoTipoVeiculo(final String codigo, final String descricao) {
1✔
31
        this.codigo = codigo;
1✔
32
        this.descricao = descricao;
1✔
33
    }
1✔
34

35
    public String getCodigo() {
36
        return this.codigo;
1✔
37
    }
38

39
    public static NFNotaInfoTipoVeiculo valueOfCodigo(final String codigo) {
40
        if (codigo == null || codigo.isEmpty()) {
1✔
41
            return null;
1✔
42
        }
43

44
        final int codigoAsInt = Integer.parseInt(codigo);
1✔
45
        for (final NFNotaInfoTipoVeiculo tipoVeiculo : NFNotaInfoTipoVeiculo.values()) {
1✔
46
            if (Integer.parseInt(tipoVeiculo.getCodigo()) == codigoAsInt) {
1✔
47
                return tipoVeiculo;
1✔
48
            }
49
        }
50
        return null;
1✔
51
    }
52

53
    @Override
54
    public String toString() {
UNCOV
55
        return codigo + " - " + descricao;
×
56
    }
57
}
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