Package edu.luc.cs.laufer.cs313.occurences

Examples of edu.luc.cs.laufer.cs313.occurences.Constants


   * {@link edu.luc.cs.laufer.cs313.occurences.TokenIteratorIndexBuilder#TokenIteratorIndexBuilder(java.util.Iterator)}.
   */
  @Test
  public void testTokenIteratorIndexBuilder() {
    try {
      new StreamTokenizerIndexBuilder(null);
      fail("expected assertion != null");
    } catch (IllegalArgumentException e) {
    }
  }
View Full Code Here


   * {@link edu.luc.cs.laufer.cs313.occurences.StreamTokenizerIteratorAdapter#StreamTokenizerIteratorAdapter(java.io.StreamTokenizer)}.
   */
  @Test
  public void testStreamTokenizerIteratorAdapter() {
    try {
      new StreamTokenizerIteratorAdapter(null);
      fail("expected assertion != null");
    } catch (IllegalArgumentException e) {

    }
  }
View Full Code Here

   * Test method for
   * {@link edu.luc.cs.laufer.cs313.occurences.DefaultToken#getLine()}.
   */
  @Test
  public void testGetWord() {
    Token token = new DefaultToken("abc", 5);
    assertEquals("abc", token.getWord());
  }
View Full Code Here

   * Test method for
   * {@link edu.luc.cs.laufer.cs313.occurences.DefaultToken#getWord()}.
   */
  @Test
  public void testGetLine() {
    Token token = new DefaultToken("abc", 5);
    assertEquals(5, token.getLine());
  }
View Full Code Here

   * {@link edu.luc.cs.laufer.cs313.occurences.TokenIteratorIndexBuilder#build(edu.luc.cs.laufer.cs313.occurences.Index)}.
   */
  @Test
  public void testBuild() throws Exception {
    Index index = new DefaultIndexImpl();
    TokenIteratorIndexBuilder builder = new TokenIteratorIndexBuilder(index);
    builder.buildFrom(stringToList(s7).iterator());
    assertEquals(s7index, index);
  }
View Full Code Here

   * {@link edu.luc.cs.laufer.cs313.occurences.TokenIteratorIndexBuilder#build(edu.luc.cs.laufer.cs313.occurences.Index)}.
   */
  @Test
  public void testBuild2() throws Exception {
    Index index = new DefaultIndexImpl();
    TokenIteratorIndexBuilder builder = new TokenIteratorIndexBuilder(index);
    builder.buildFrom(stringToList(s8).iterator());
    assertEquals(s8index, index);
  }
View Full Code Here

TOP

Related Classes of edu.luc.cs.laufer.cs313.occurences.Constants

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.