com.fatdog.xmlEngine.junitTest
Class Functions

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended bycom.fatdog.xmlEngine.junitTest.Functions
All Implemented Interfaces:
junit.framework.Test

public class Functions
extends junit.framework.TestCase

Tests various built-in functions.

NOTA: This test case tests indexing a web-based document and requires internet connectivity. See suite() if you don't want that.

Version:
0.66
Author:
Howard Katz, howardk@fatdog.com

Constructor Summary
Functions()
           
 
Method Summary
static junit.framework.Test suite()
           
 void test_boolean_1()
          Testing the Effective Boolean Value of various arguments
 void test_boolean_2()
           
 void test_boolean_3()
           
 void test_boolean_4()
           
 void test_boolean_5()
           
 void test_boolean_6()
           
 void test_boolean_7()
           
 void test_boolean_8()
           
 void test_boolean_9()
           
 void test_contains_word_1()
          A slash (/) separates "TCP" and "IP" into two words for word breaking.
 void test_contains_word_2()
          By default, word case is irrelevant.
 void test_contains_word_3()
          Case is significant if you want it to be.
 void test_contains_word_4()
           
 void test_contains_word_5()
          Internal whitespace and/or punctuation acts to delimit words.
 void test_contains_word_6()
          Any in-word separators will do.
 void test_contains_word_7()
          Any number of explicit word arguments is fine as well.
 void test_contains_word_8()
          If *any* words are missing, the search fails.
 void test_count_1()
           
 void test_count_2()
           
 void test_count_3()
           
 void test_count_4()
           
 void test_countDocuments()
           
 void test_doc_0()
           
 void test_doc_1()
           
 void test_doc_2()
           
 void test_doc_3()
           
 void test_doc_4()
           
 void test_empty_1()
           
 void test_empty_2()
           
 void test_exists_1()
           
 void test_exists_2()
           
 void test_functionMustHavaArg()
           
 void test_name_1()
           
 void test_name_2()
           
 void test_name_3()
           
 void test_name_4()
           
 void test_name_5()
           
 void test_string_1()
           
 void test_string_2()
           
 void test_string_3()
           
 void test_string_4()
           
 void test_string_5()
           
 void test_string_6()
           
 void test_string_7()
           
 void test_trueFalse_1()
           
 void test_trueFalse_2()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, getName, run, run, runBare, 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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Functions

public Functions()
Method Detail

test_boolean_1

public void test_boolean_1()
                    throws InvalidQueryException
Testing the Effective Boolean Value of various arguments

Throws:
InvalidQueryException

test_boolean_2

public void test_boolean_2()
                    throws InvalidQueryException
Throws:
InvalidQueryException

test_boolean_3

public void test_boolean_3()
                    throws InvalidQueryException
Throws:
InvalidQueryException

test_boolean_4

public void test_boolean_4()
                    throws InvalidQueryException
Throws:
InvalidQueryException

test_boolean_5

public void test_boolean_5()
                    throws InvalidQueryException
Throws:
InvalidQueryException

test_boolean_6

public void test_boolean_6()
                    throws InvalidQueryException
Throws:
InvalidQueryException

test_boolean_7

public void test_boolean_7()
                    throws InvalidQueryException
Throws:
InvalidQueryException

test_boolean_8

public void test_boolean_8()
                    throws InvalidQueryException
Throws:
InvalidQueryException

test_boolean_9

public void test_boolean_9()
                    throws InvalidQueryException
Throws:
InvalidQueryException

test_contains_word_1

public void test_contains_word_1()
                          throws InvalidQueryException
A slash (/) separates "TCP" and "IP" into two words for word breaking.

Throws:
InvalidQueryException

test_contains_word_2

public void test_contains_word_2()
                          throws InvalidQueryException
By default, word case is irrelevant.

Throws:
InvalidQueryException

test_contains_word_3

public void test_contains_word_3()
                          throws InvalidQueryException
Case is significant if you want it to be.

Throws:
InvalidQueryException

test_contains_word_4

public void test_contains_word_4()
                          throws InvalidQueryException
Throws:
InvalidQueryException

test_contains_word_5

public void test_contains_word_5()
                          throws InvalidQueryException
Internal whitespace and/or punctuation acts to delimit words.

Throws:
InvalidQueryException

test_contains_word_6

public void test_contains_word_6()
                          throws InvalidQueryException
Any in-word separators will do.

Throws:
InvalidQueryException

test_contains_word_7

public void test_contains_word_7()
                          throws InvalidQueryException
Any number of explicit word arguments is fine as well.

Throws:
InvalidQueryException

test_contains_word_8

public void test_contains_word_8()
                          throws InvalidQueryException
If *any* words are missing, the search fails.

Throws:
InvalidQueryException

test_countDocuments

public void test_countDocuments()
                         throws InvalidQueryException
Throws:
InvalidQueryException

test_count_1

public void test_count_1()
                  throws InvalidQueryException
Throws:
InvalidQueryException

test_count_2

public void test_count_2()
                  throws InvalidQueryException
Throws:
InvalidQueryException

test_count_3

public void test_count_3()
                  throws InvalidQueryException
Throws:
InvalidQueryException

test_count_4

public void test_count_4()
                  throws InvalidQueryException
Throws:
InvalidQueryException

test_doc_0

public void test_doc_0()
                throws InvalidQueryException
Throws:
InvalidQueryException

test_doc_1

public void test_doc_1()
                throws InvalidQueryException
Throws:
InvalidQueryException

test_doc_2

public void test_doc_2()
                throws InvalidQueryException
Throws:
InvalidQueryException

test_doc_3

public void test_doc_3()
                throws InvalidQueryException
Throws:
InvalidQueryException

test_doc_4

public void test_doc_4()
                throws InvalidQueryException
Throws:
InvalidQueryException

test_empty_1

public void test_empty_1()
                  throws InvalidQueryException
Throws:
InvalidQueryException

test_empty_2

public void test_empty_2()
                  throws InvalidQueryException
Throws:
InvalidQueryException

test_exists_1

public void test_exists_1()
                   throws InvalidQueryException
Throws:
InvalidQueryException

test_exists_2

public void test_exists_2()
                   throws InvalidQueryException
Throws:
InvalidQueryException

test_functionMustHavaArg

public void test_functionMustHavaArg()

test_name_1

public void test_name_1()
                 throws InvalidQueryException
Throws:
InvalidQueryException

test_name_2

public void test_name_2()
                 throws InvalidQueryException
Throws:
InvalidQueryException

test_name_3

public void test_name_3()
                 throws InvalidQueryException
Throws:
InvalidQueryException

test_name_4

public void test_name_4()

test_name_5

public void test_name_5()
                 throws InvalidQueryException
Throws:
InvalidQueryException

test_string_1

public void test_string_1()

test_string_2

public void test_string_2()
                   throws InvalidQueryException
Throws:
InvalidQueryException

test_string_3

public void test_string_3()
                   throws InvalidQueryException
Throws:
InvalidQueryException

test_string_4

public void test_string_4()
                   throws InvalidQueryException
Throws:
InvalidQueryException

test_string_5

public void test_string_5()
                   throws InvalidQueryException
Throws:
InvalidQueryException

test_string_6

public void test_string_6()
                   throws InvalidQueryException
Throws:
InvalidQueryException

test_string_7

public void test_string_7()
                   throws InvalidQueryException
Throws:
InvalidQueryException

test_trueFalse_1

public void test_trueFalse_1()
                      throws InvalidQueryException
Throws:
InvalidQueryException

test_trueFalse_2

public void test_trueFalse_2()
                      throws InvalidQueryException
Throws:
InvalidQueryException

suite

public static junit.framework.Test suite()