[
https://issues.apache.org/jira/browse/OPENNLP-1020?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15970578#comment-15970578
]
ASF GitHub Bot commented on OPENNLP-1020:
-----------------------------------------
Github user asfgit closed the pull request at:
https://github.com/apache/opennlp/pull/156
> MockInputStreamFactory.createInputStream should create a new InputStream
> ------------------------------------------------------------------------
>
> Key: OPENNLP-1020
> URL: https://issues.apache.org/jira/browse/OPENNLP-1020
> Project: OpenNLP
> Issue Type: Bug
> Components: Build, Packaging and Test
> Affects Versions: 1.7.2
> Reporter: Koji Sekiguchi
> Assignee: Koji Sekiguchi
> Priority: Minor
> Labels: test
> Fix For: 1.8.0
>
>
> Working on OPENNLP-1018, if I added a test for reset() of
> PlainTextByLineStream to the existing PlainTextByLineStreamTest, it doesn't
> work because it uses MockInputStreamFactory and call
> MockInputStreamFactory.createInputStream() in reset() but
> MockInputStreamFactory.createInputStream() doesn't create a new input stream
> but just returns input stream which it holds instead.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)