mirror of https://github.com/apache/lucene.git
LUCENE-4199: this is ok, just make it explicit what we are doing and add comment
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene4199@1358747 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
671473eb5c
commit
8bc95251ae
|
@ -57,7 +57,8 @@ public class BreakIteratorBoundaryScannerTest extends LuceneTestCase {
|
||||||
|
|
||||||
public void testSentenceBoundary() throws Exception {
|
public void testSentenceBoundary() throws Exception {
|
||||||
StringBuilder text = new StringBuilder(TEXT);
|
StringBuilder text = new StringBuilder(TEXT);
|
||||||
BreakIterator bi = BreakIterator.getSentenceInstance();
|
// we test this with default locale, its randomized by LuceneTestCase
|
||||||
|
BreakIterator bi = BreakIterator.getSentenceInstance(Locale.getDefault());
|
||||||
BoundaryScanner scanner = new BreakIteratorBoundaryScanner(bi);
|
BoundaryScanner scanner = new BreakIteratorBoundaryScanner(bi);
|
||||||
|
|
||||||
int start = TEXT.indexOf("any application");
|
int start = TEXT.indexOf("any application");
|
||||||
|
@ -70,7 +71,8 @@ public class BreakIteratorBoundaryScannerTest extends LuceneTestCase {
|
||||||
|
|
||||||
public void testLineBoundary() throws Exception {
|
public void testLineBoundary() throws Exception {
|
||||||
StringBuilder text = new StringBuilder(TEXT);
|
StringBuilder text = new StringBuilder(TEXT);
|
||||||
BreakIterator bi = BreakIterator.getLineInstance();
|
// we test this with default locale, its randomized by LuceneTestCase
|
||||||
|
BreakIterator bi = BreakIterator.getLineInstance(Locale.getDefault());
|
||||||
BoundaryScanner scanner = new BreakIteratorBoundaryScanner(bi);
|
BoundaryScanner scanner = new BreakIteratorBoundaryScanner(bi);
|
||||||
|
|
||||||
int start = TEXT.indexOf("any application");
|
int start = TEXT.indexOf("any application");
|
||||||
|
|
Loading…
Reference in New Issue