You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tika.apache.org by ta...@apache.org on 2019/03/08 00:39:57 UTC
[tika] branch branch_1x updated: TIKA-2836 fix branch_1x diffs
This is an automated email from the ASF dual-hosted git repository.
tallison pushed a commit to branch branch_1x
in repository https://gitbox.apache.org/repos/asf/tika.git
The following commit(s) were added to refs/heads/branch_1x by this push:
new 8ba3cbe TIKA-2836 fix branch_1x diffs <face_palm/>
8ba3cbe is described below
commit 8ba3cbe3a9538701f6a6236cadc6a70286177474
Author: TALLISON <ta...@apache.org>
AuthorDate: Thu Mar 7 19:39:45 2019 -0500
TIKA-2836 fix branch_1x diffs <face_palm/>
---
.../test/java/org/apache/tika/parser/csv/TextAndCSVParserTest.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tika-parsers/src/test/java/org/apache/tika/parser/csv/TextAndCSVParserTest.java b/tika-parsers/src/test/java/org/apache/tika/parser/csv/TextAndCSVParserTest.java
index ed05d1a..373abdc 100644
--- a/tika-parsers/src/test/java/org/apache/tika/parser/csv/TextAndCSVParserTest.java
+++ b/tika-parsers/src/test/java/org/apache/tika/parser/csv/TextAndCSVParserTest.java
@@ -174,11 +174,11 @@ public class TextAndCSVParserTest extends TikaTest {
byte[] bytes = ("testcsv\n" +
"testcsv testcsv;;; testcsv").getBytes(StandardCharsets.UTF_8);
Metadata metadata = new Metadata();
- metadata.set(TikaCoreProperties.RESOURCE_NAME_KEY, "test.csv");
+ metadata.set(Metadata.RESOURCE_NAME_KEY, "test.csv");
XMLResult xmlResult = getXML(new ByteArrayInputStream(bytes), PARSER, metadata);
assertContains("text/plain", xmlResult.metadata.get(Metadata.CONTENT_TYPE));
- metadata.set(TikaCoreProperties.RESOURCE_NAME_KEY, "test.txt");
+ metadata.set(Metadata.RESOURCE_NAME_KEY, "test.txt");
xmlResult = getXML(new ByteArrayInputStream(bytes), PARSER, metadata);
assertContains("text/plain", xmlResult.metadata.get(Metadata.CONTENT_TYPE));
}