degu.test.searcher.ejb
Class IndexSearcherTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by degu.test.searcher.ejb.IndexSearcherTest
All Implemented Interfaces:
junit.framework.Test

public class IndexSearcherTest
extends junit.framework.TestCase

EJB Test Client


Field Summary
protected  SearcherHome home
          Home interface
private static org.apache.log4j.Logger logger
           
 
Constructor Summary
IndexSearcherTest()
           
IndexSearcherTest(java.lang.String arg0)
           
 
Method Summary
protected  SearcherHome getHome()
          Get the home interface
protected  javax.naming.Context getInitialContext()
          Get the initial naming context
protected  void setUp()
          Set up the test case
 void testSearchDocumentIndex()
          Test for degu.searcher.interfaces.Searcher.searchDocumentIndex(java.lang.String queryString)
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

logger

private static org.apache.log4j.Logger logger

home

protected SearcherHome home
Home interface

Constructor Detail

IndexSearcherTest

public IndexSearcherTest()

IndexSearcherTest

public IndexSearcherTest(java.lang.String arg0)
Method Detail

getInitialContext

protected javax.naming.Context getInitialContext()
                                          throws java.lang.Exception
Get the initial naming context

Throws:
java.lang.Exception

getHome

protected SearcherHome getHome()
                        throws java.lang.Exception
Get the home interface

Throws:
java.lang.Exception

setUp

protected void setUp()
              throws java.lang.Exception
Set up the test case

Overrides:
setUp in class junit.framework.TestCase
Throws:
java.lang.Exception

testSearchDocumentIndex

public void testSearchDocumentIndex()
Test for degu.searcher.interfaces.Searcher.searchDocumentIndex(java.lang.String queryString)

Throws:
org.apache.lucene.queryParser.ParseException