com.fatdog.xmlEngine.junitTest
Class ProtocolHandlerTest

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

public class ProtocolHandlerTest
extends junit.framework.TestCase

A Junit test case that tests XQEngine custom-protocol handling. This test instantiates, registers, and then indirectly requests XML content from a custom protocol handler, XYZ_ProtocolHandler.

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

Constructor Summary
ProtocolHandlerTest()
           
 
Method Summary
static junit.framework.Test suite()
           
 void test_badHandler_1()
          Ask the protocol handler to return content from a document that's never been indexed.
 void test_badHandler_2()
          Attempt to index a document the protocol handler doesn't recognize.
 void test_badHandler_3()
           
 void test_goodHandler_1()
          Index two "XYZ::"-scheme based documents and query their content.
 void test_goodHandler_2()
          Ask the protocol handler indirectly to return content from one document on a query.
 void test_goodHandler_3()
          Ask the protocol handler to return content from a second document on a query.
 
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

ProtocolHandlerTest

public ProtocolHandlerTest()
Method Detail

test_goodHandler_1

public void test_goodHandler_1()
                        throws InvalidQueryException
Index two "XYZ::"-scheme based documents and query their content.

Throws:
InvalidQueryException

test_goodHandler_2

public void test_goodHandler_2()
                        throws InvalidQueryException
Ask the protocol handler indirectly to return content from one document on a query.

Throws:
InvalidQueryException

test_goodHandler_3

public void test_goodHandler_3()
                        throws InvalidQueryException
Ask the protocol handler to return content from a second document on a query.

Throws:
InvalidQueryException

test_badHandler_1

public void test_badHandler_1()
Ask the protocol handler to return content from a document that's never been indexed. Failure expected.


test_badHandler_2

public void test_badHandler_2()
Attempt to index a document the protocol handler doesn't recognize. Failure expected.


test_badHandler_3

public void test_badHandler_3()
                       throws InvalidQueryException
Throws:
InvalidQueryException

suite

public static junit.framework.Test suite()