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 2017/05/16 13:52:59 UTC

[tika] branch master updated: TIKA-2360 -- fix "fix" for SentimentParserTest

This is an automated email from the ASF dual-hosted git repository.

tallison pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tika.git

The following commit(s) were added to refs/heads/master by this push:
       new  d873147   TIKA-2360 -- fix "fix" for SentimentParserTest
d873147 is described below

commit d87314734b7afe0687ffe756694e6f461a7e253e
Author: tballison <ta...@mitre.org>
AuthorDate: Tue May 16 09:52:42 2017 -0400

    TIKA-2360 -- fix "fix" for SentimentParserTest
---
 .../apache/tika/parser/sentiment/analysis/SentimentParserTest.java  | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tika-parsers/src/test/java/org/apache/tika/parser/sentiment/analysis/SentimentParserTest.java b/tika-parsers/src/test/java/org/apache/tika/parser/sentiment/analysis/SentimentParserTest.java
index 3540a0b..fb5941e 100644
--- a/tika-parsers/src/test/java/org/apache/tika/parser/sentiment/analysis/SentimentParserTest.java
+++ b/tika-parsers/src/test/java/org/apache/tika/parser/sentiment/analysis/SentimentParserTest.java
@@ -52,7 +52,7 @@ public class SentimentParserTest {
         tika.parse(stream, md);
         String sentiment = md.get("Sentiment");
         assertNotNull(sentiment);
-        assertEquals(sentiment, "positive");
+        assertEquals("positive", sentiment);
 
     }
 
@@ -68,12 +68,12 @@ public class SentimentParserTest {
         tika.parse(stream, md);
         String sentiment = md.get("Sentiment");
         assertNotNull(sentiment);
-        assertEquals(sentiment, "angry");
+        assertEquals("angry", sentiment);
    }
 
    private Tika getTika(String configXml) throws TikaException, SAXException, IOException {
 
-       try (InputStream confStream = getClass().getResourceAsStream("tika-config-sentiment-opennlp.xml")) {
+       try (InputStream confStream = getClass().getResourceAsStream(configXml)) {
            assert confStream != null;
            TikaConfig config = new TikaConfig(confStream);
            return new Tika(config);

-- 
To stop receiving notification emails like this one, please contact
['"commits@tika.apache.org" <co...@tika.apache.org>'].