fedora.server.test
Class FieldSearchTest

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byfedora.server.test.FieldSearchTest
All Implemented Interfaces:
junit.framework.Test

public class FieldSearchTest
extends junit.framework.TestCase

Title: FieldSearchTest.java

Description: Tests the implementation of the FieldSearch interface, FieldSearchSQLImpl.

-----------------------------------------------------------------------------

License and Copyright: The contents of this file are subject to the Mozilla Public License Version 1.1 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.mozilla.org/MPL/.

Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License.

The entire file consists of original code. Copyright © 2002-2005 by The Rector and Visitors of the University of Virginia and Cornell University. All rights reserved.

-----------------------------------------------------------------------------

Version:
$Id: FieldSearchTest.java,v 1.26 2005/01/12 22:33:49 payette Exp $
Author:
cwilper@cs.cornell.edu

Constructor Summary
FieldSearchTest(java.lang.String fedoraHome, java.lang.String label)
           
 
Method Summary
static void main(java.lang.String[] args)
           
 void printAdvancedSearch(java.lang.String[] fields, java.lang.String conditionQuery)
           
 void printSimpleSearch(java.lang.String[] fields, java.lang.String terms)
           
 void setUp()
           
 void testDeleteAll()
           
 void testPerformance(java.io.File dictionaryFile, int repeatMax, int wordMax, int numObjects, java.io.File indexingOutput, java.io.File regexOutput, java.io.File wordOutput, java.io.File fieldOutput)
           
 void testSimpleSearch()
           
 void testUpdateAll()
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FieldSearchTest

public FieldSearchTest(java.lang.String fedoraHome,
                       java.lang.String label)
Method Detail

setUp

public void setUp()

testDeleteAll

public void testDeleteAll()

testUpdateAll

public void testUpdateAll()

testSimpleSearch

public void testSimpleSearch()

testPerformance

public void testPerformance(java.io.File dictionaryFile,
                            int repeatMax,
                            int wordMax,
                            int numObjects,
                            java.io.File indexingOutput,
                            java.io.File regexOutput,
                            java.io.File wordOutput,
                            java.io.File fieldOutput)

printSimpleSearch

public void printSimpleSearch(java.lang.String[] fields,
                              java.lang.String terms)

printAdvancedSearch

public void printAdvancedSearch(java.lang.String[] fields,
                                java.lang.String conditionQuery)

main

public static void main(java.lang.String[] args)