Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.RuntimeCollective.search.test
Class DefaultSearchTest  view DefaultSearchTest download DefaultSearchTest.java

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended bycom.RuntimeCollective.webapps.RuntimeTestCase
              extended bycom.RuntimeCollective.webapps.test.WebappsTestCase
                  extended bycom.RuntimeCollective.search.test.DefaultSearchTest
All Implemented Interfaces:
junit.framework.Test

public class DefaultSearchTest
extends com.RuntimeCollective.webapps.test.WebappsTestCase

This is the new-style test script for the search module, which effectively deprecates SearchTest and SearchTextCase. New projects should use this.


Field Summary
private static java.lang.String testIndex
           
 
Fields inherited from class com.RuntimeCollective.webapps.test.WebappsTestCase
DEFAULT_STORE_CLASS
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
DefaultSearchTest(java.lang.String name)
           
 
Method Summary
private static void initSearchIndex()
          Initialise the searchIndex
private static void nuke(java.io.File path)
           
protected  void setUp()
          This has been copied over from the theseus test cases, and will be updated to use the RuntimeTestCase init routines shortly
protected  void tearDown()
          Tears down the fixture, for example, close a network connection.
private static void tearDownIndex()
           
 void testAddRemoveSearchable()
           
 void testBadCharactersInCriteria()
           
 void testDoSearch()
           
 void testMakeSearch()
           
 void testPhraseSearchCriteria()
           
 void testPopulate()
           
 void testSearchCriteria()
           
 
Methods inherited from class com.RuntimeCollective.webapps.test.WebappsTestCase
checkBeanStore, getBeanNames, getNameId, getStoreClassForBeanName, initialiseBeanStore, initMailSession, initUserGroups, printBeanStoreClasses, registerBeanClass, registerBeanClass, resetBeanRegister, testCheckEntityBeanStoreValid
 
Methods inherited from class com.RuntimeCollective.webapps.RuntimeTestCase
LogTestSection, main, setupRuntime
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

testIndex

private static java.lang.String testIndex
Constructor Detail

DefaultSearchTest

public DefaultSearchTest(java.lang.String name)
Method Detail

setUp

protected void setUp()
Description copied from class: com.RuntimeCollective.webapps.test.WebappsTestCase
This has been copied over from the theseus test cases, and will be updated to use the RuntimeTestCase init routines shortly


tearDown

protected void tearDown()
Description copied from class: junit.framework.TestCase
Tears down the fixture, for example, close a network connection. This method is called after a test is executed.


initSearchIndex

private static void initSearchIndex()
Initialise the searchIndex


testSearchCriteria

public void testSearchCriteria()

testPhraseSearchCriteria

public void testPhraseSearchCriteria()

testBadCharactersInCriteria

public void testBadCharactersInCriteria()

testMakeSearch

public void testMakeSearch()

testAddRemoveSearchable

public void testAddRemoveSearchable()

testPopulate

public void testPopulate()

testDoSearch

public void testDoSearch()

tearDownIndex

private static void tearDownIndex()

nuke

private static void nuke(java.io.File path)
                  throws java.io.IOException