Example #1
0
  /**
   * Run the void indexDocument(Document) method test.
   *
   * @throws Exception
   * @generatedBy CodePro at 12/16/14 3:36 PM
   */
  @Test
  public void testIndexDocument_1() throws Exception {
    LuceneUtil fixture = new LuceneUtil();
    Document doc = new Document();

    fixture.indexDocument(doc);
  }
Example #2
0
  /**
   * Run the void search(Query) method test.
   *
   * @throws Exception
   * @generatedBy CodePro at 12/16/14 3:36 PM
   */
  @Test
  public void testSearch_1() throws Exception {
    LuceneUtil fixture = new LuceneUtil();

    fixture.search(null);

    // An unexpected exception was thrown in user code while executing this test:
    //    java.lang.NullPointerException
    //       at org.apache.lucene.search.Query.mergeBooleanQueries(Query.java:182)
  }
Example #3
0
  /**
   * Run the void clearAllIndices() method test.
   *
   * @throws Exception
   * @generatedBy CodePro at 12/16/14 3:36 PM
   */
  @Test
  public void testClearAllIndices_1() throws Exception {
    LuceneUtil fixture = new LuceneUtil();

    fixture.clearAllIndices();
  }