andsel commented on code in PR #16984:
URL: https://github.com/apache/lucene/pull/16984#discussion_r4483502520
##########
lucene/analysis/common/src/test/org/apache/lucene/analysis/miscellaneous/TestTruncateTokenFilterFactory.java:
##########
@@ -28,7 +28,6 @@ public class TestTruncateTokenFilterFactory extends
BaseTokenStreamFactoryTestCa
public void testCharTruncating() throws Exception {
testCharTruncating(TruncateTokenFilterFactory.TRUNCATE_AFTER_CHARS_KEY);
- testCharTruncating(TruncateTokenFilterFactory.PREFIX_LENGTH_KEY);
Review Comment:
Fixed with 59c1336073f8a6b33c1220287ca1164536eceac1.
I used Hamcrest matcher and `assertThat` instead of JUnit `assertTrue`
because in case there is issue with the string returned in the exception, then
the error message is more clear and helpful.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]