-
Notifications
You must be signed in to change notification settings - Fork 489
OPENNLP-1024: Add unit tests and javadocs for DirectorySampleStream. #160
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
|
||
| import static org.junit.Assert.assertNull; | ||
| import static org.junit.Assert.assertTrue; | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have a recent very nitty checkstyle to avoid static imports :-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll fix that. I don't think checkstyle complained during my build. Should it have?
| @Test | ||
| public void directoryNullFilterTest() throws IOException { | ||
|
|
||
| List<File> files = new ArrayList<File>(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no need to define the type on RHS, replace by diamond <>
|
Coverage increased (+0.2%) to 56.074% when pulling cce36ea on jzonthemtn:OPENNLP-1024 into 4efd950 on apache:master. |
cce36ea to
8bf7389
Compare
|
We didn't enable that in checkstyle, but we have been cognizant about
avoiding static imports since 1.7.0 release. Please go ahead and make the
change - sorry for being nitpicky
…On Sat, Apr 15, 2017 at 5:00 PM, Jeff ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In opennlp-tools/src/test/java/opennlp/tools/formats/
DirectorySampleStreamTest.java
<#160 (comment)>:
> +
+package opennlp.tools.formats;
+
+import java.io.File;
+import java.io.FileFilter;
+import java.io.IOException;
+import java.util.ArrayList;
+import java.util.List;
+
+import org.junit.Rule;
+import org.junit.Test;
+import org.junit.rules.TemporaryFolder;
+
+import static org.junit.Assert.assertNull;
+import static org.junit.Assert.assertTrue;
+
I'll fix that. I don't think checkstyle complained during my build. Should
it have?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#160 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AC_fot7eeBSs4UgcLXNB6_Z2GOjipCDCks5rwS_lgaJpZM4M-dNh>
.
|
|
Coverage increased (+0.2%) to 56.074% when pulling 8bf7389 on jzonthemtn:OPENNLP-1024 into 4efd950 on apache:master. |
wcolen
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 LGTM
Thank you for contributing to Apache OpenNLP.
In order to streamline the review of the contribution we ask you
to ensure the following steps have been taken:
For all changes:
Is there a JIRA ticket associated with this PR? Is it referenced
in the commit message?
Does your PR title start with OPENNLP-XXXX where XXXX is the JIRA number you are trying to resolve? Pay particular attention to the hyphen "-" character.
Has your PR been rebased against the latest commit within the target branch (typically master)?
Is your initial contribution a single, squashed commit?
For code changes:
For documentation related changes:
Note:
Please ensure that once the PR is submitted, you check travis-ci for build issues and submit an update to your PR as soon as possible.