lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ehatc...@apache.org
Subject cvs commit: jakarta-lucene/src/test/org/apache/lucene/analysis TestPerFieldAnalzyerWrapper.java
Date Thu, 09 Oct 2003 00:13:24 GMT
ehatcher    2003/10/08 17:13:24

  Modified:    src/test/org/apache/lucene/analysis
                        TestPerFieldAnalzyerWrapper.java
  Log:
  aesthetics cleanup
  
  Revision  Changes    Path
  1.2       +13 -6     jakarta-lucene/src/test/org/apache/lucene/analysis/TestPerFieldAnalzyerWrapper.java
  
  Index: TestPerFieldAnalzyerWrapper.java
  ===================================================================
  RCS file: /home/cvs/jakarta-lucene/src/test/org/apache/lucene/analysis/TestPerFieldAnalzyerWrapper.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- TestPerFieldAnalzyerWrapper.java	25 Sep 2003 18:54:55 -0000	1.1
  +++ TestPerFieldAnalzyerWrapper.java	9 Oct 2003 00:13:24 -0000	1.2
  @@ -58,17 +58,24 @@
    */
   
   public class TestPerFieldAnalzyerWrapper extends TestCase {
  -  public void testIt() throws Exception {
  +  public void testPerField() throws Exception {
       String text = "Qwerty";
  -    PerFieldAnalyzerWrapper analyzer = new PerFieldAnalyzerWrapper(new WhitespaceAnalyzer());
  +    PerFieldAnalyzerWrapper analyzer =
  +              new PerFieldAnalyzerWrapper(new WhitespaceAnalyzer());
       analyzer.addAnalyzer("special", new SimpleAnalyzer());
   
  -    TokenStream tokenStream = analyzer.tokenStream("field", new StringReader(text));
  +    TokenStream tokenStream = analyzer.tokenStream("field",
  +                                            new StringReader(text));
       Token token = tokenStream.next();
  -    assertEquals("WhitespaceAnalyzer does not lowercase", "Qwerty", token.termText());
  +    assertEquals("WhitespaceAnalyzer does not lowercase",
  +                 "Qwerty",
  +                 token.termText());
   
  -    tokenStream = analyzer.tokenStream("special", new StringReader(text));
  +    tokenStream = analyzer.tokenStream("special",
  +                                            new StringReader(text));
       token = tokenStream.next();
  -    assertEquals("SimpleAnalyzer lowercases", "qwerty", token.termText());
  +    assertEquals("SimpleAnalyzer lowercases",
  +                 "qwerty",
  +                 token.termText());
     }
   }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-dev-help@jakarta.apache.org


Mime
View raw message