diff --git a/src/main/java/com/fincatto/nfe310/transformers/NFSituacaoContribuinteTransformer.java b/src/main/java/com/fincatto/nfe310/transformers/NFSituacaoContribuinteTransformer.java
index bfc0f5db4..bf3c05034 100644
--- a/src/main/java/com/fincatto/nfe310/transformers/NFSituacaoContribuinteTransformer.java
+++ b/src/main/java/com/fincatto/nfe310/transformers/NFSituacaoContribuinteTransformer.java
@@ -15,4 +15,4 @@ public NFSituacaoContribuinte read(final String codigoSituacaoContribuinte) thro
public String write(final NFSituacaoContribuinte situacaoContribuinte) throws Exception {
return String.valueOf(situacaoContribuinte.getCodigo());
}
-}
+}
\ No newline at end of file
diff --git a/src/test/java/com/fincatto/nfe310/classes/nota/NFNotaInfoItemProdutoTest.java b/src/test/java/com/fincatto/nfe310/classes/nota/NFNotaInfoItemProdutoTest.java
index 3844a41b2..3708b1dc3 100755
--- a/src/test/java/com/fincatto/nfe310/classes/nota/NFNotaInfoItemProdutoTest.java
+++ b/src/test/java/com/fincatto/nfe310/classes/nota/NFNotaInfoItemProdutoTest.java
@@ -1510,6 +1510,16 @@ public void deveRetornarVazioCasoNaoPossuaCodigoDeBarras() {
Assert.assertEquals("", new NFNotaInfoItemProduto().getCodigoDeBarras());
}
+ @Test
+ public void deveGerarTagsCeansVaziasQuandoProdutoNaoPossuiCodigoDeBarras() {
+ final NFNotaInfoItemProduto notaInfoItemProduto = FabricaDeObjetosFake.getNFNotaInfoItemProduto();
+ notaInfoItemProduto.setCodigoDeBarrasTributavel("");
+ notaInfoItemProduto.setCodigoDeBarras("");
+
+ final String xmlEsperado = "ohVRInAS7jw8LNDP4WWjssSjBHK8nJRERnAeRMcsUokF3YItT93fBto3zZcqOBS0ztekCoG0DSSVcQwPKRV2fV842Pye7mED13P4zoDczcXi4AMNvQ7BKBLnHtLc2Z9fuIY1pcKmXSK1IJQSLEs5QWvVGyC74DyJuIM0X7L0cqWPZQii5JtP99999999AZ012399999999991302Bta64y9999999999.99999999999999.9999999999999999999999.997wqG4h9999999999.99999999999999.9999999999999999999999.99999999999999.99999999999999.99999999999999.991ZRJihqWLyHnb2014-02-02kiVfWKB94ggsrWND0XBXwEjJkoiTXhkmX9qKGKzjpnEHHp852bDkYeEUkzpURS2014-01-014999999999999.99312345678901234RSE9jBqM65b0MiCiRnYil203iNGJOSZs8iU1KGmQsj2N0kw6QMuvhbsQosFGcU999999sA2FBRFMMNgF1AKRDDXYOlc3zGvzEc69l6zQ5O5uAUe82XZ3szQfw01DW0Ki999999999999.9999999999999NNxQ9nrQ3HCe5Mc999999yq50jVDZsvQVNuWoS45U9999999.9992014-01-012015-01-01999999999999.99";
+ Assert.assertEquals(xmlEsperado, notaInfoItemProduto.toString());
+ }
+
@Test
public void deveGerarXMLComCeanECeanTribVaziosCasoSejaNuloAoSerParseado() throws Exception {
final String xml = "ohVRInAS7jw8LNDP4WWjssSjBHK8nJRERnAeRMcsUokF3YItT93fBto3zZcqOBS0ztekCoG0DSSVcQwPKRV2fV842Pye7mED13P4zoDczcXi4AMNvQ7BKBLnHtLc2Z9fuIY1pcKmXSK1IJQSLEs5QWvVGyC74DyJuIM0X7L0cqWPZQii5JtP99999999AZ012399999999991302Bta64y9999999999.99999999999999.9999999999999999999999.997wqG4h9999999999.99999999999999.9999999999999999999999.99999999999999.99999999999999.99999999999999.991ZRJihqWLyHnb2014-02-02kiVfWKB94ggsrWND0XBXwEjJkoiTXhkmX9qKGKzjpnEHHp852bDkYeEUkzpURS2014-01-014999999999999.99312345678901234RSE9jBqM65b0MiCiRnYil203iNGJOSZs8iU1KGmQsj2N0kw6QMuvhbsQosFGcU999999sA2FBRFMMNgF1AKRDDXYOlc3zGvzEc69l6zQ5O5uAUe82XZ3szQfw01DW0Ki999999999999.9999999999999NNxQ9nrQ3HCe5Mc999999yq50jVDZsvQVNuWoS45U9999999.9992014-01-012015-01-01999999999999.99";