org.sixdml.parser
Class SixdmlParserTest

java.lang.Object
  |
  +--junit.framework.Assert
        |
        +--junit.framework.TestCase
              |
              +--org.sixdml.parser.SixdmlParserTest
All Implemented Interfaces:
junit.framework.Test

public class SixdmlParserTest
extends junit.framework.TestCase

  
 SixdmlParserTest.java
 

 Created: Tue Jan 22 03:21:07 2002

 

Version:
1.0
Author:
Dare Obasanjo

Field Summary
static String cmd_constrcol1
           
static String cmd_createcol1
           
static String cmd_createcol2
           
static String cmd_createcol3
           
static String cmd_createcol4
           
static String cmd_createindx1
           
static String cmd_createindx2
           
static String cmd_createindx3
           
static String cmd_delete1
           
static String cmd_delete2
           
static String cmd_dropcol1
           
static String cmd_dropcol2
           
static String cmd_dropconstr1
           
static String cmd_dropfromcol1
           
static String cmd_dropindx1
           
static String cmd_insrt_after_1
           
static String cmd_insrt_after_2
           
static String cmd_insrt_after_3
           
static String cmd_insrt_after_4
           
static String cmd_insrt_at_1
           
static String cmd_insrt_at_2
           
static String cmd_insrt_at_3
           
static String cmd_insrt_at_4
           
static String cmd_insrt_attr1
           
static String cmd_insrt_attr10
           
static String cmd_insrt_attr2
           
static String cmd_insrt_attr3
           
static String cmd_insrt_attr4
           
static String cmd_insrt_attr5
           
static String cmd_insrt_attr6
           
static String cmd_insrt_attr7
           
static String cmd_insrt_attr8
           
static String cmd_insrt_attr9
           
static String cmd_insrt_b4_1
           
static String cmd_insrt_b4_2
           
static String cmd_insrt_b4_3
           
static String cmd_insrt_b4_4
           
static String cmd_insrt_url_into1
           
static String cmd_insrt_url_into2
           
static String cmd_insrt_url_into3
           
static String cmd_insrt_url_into4
           
static String cmd_insrt_xml_into1
           
static String cmd_insrt_xml_into2
           
static String cmd_insrt_xml_into3
           
static String cmd_rename1
           
static String cmd_rename2
           
static String cmd_rename3
           
static String cmd_rename4
           
static String cmd_rename5
           
static String cmd_rename6
           
static String cmd_rplc1
           
static String cmd_rplc2
           
static String cmd_rplc3
           
static String cmd_rplc4
           
static String cmd_rplc5
           
static String cmd_rplc6
           
static String cmd_select1
           
static String cmd_select10
           
static String cmd_select11
           
static String cmd_select12
           
static String cmd_select13
           
static String cmd_select14
           
static String cmd_select2
           
static String cmd_select3
           
static String cmd_select4
           
static String cmd_select5
           
static String cmd_select6
           
static String cmd_select7
           
static String cmd_select8
           
static String cmd_select9
           
static String cmd_setup_createcol
           
static String cmd_show_schema1
           
static String cmd_showcol1
           
static String cmd_showcol2
           
static String cmd_showindices
           
static String cmd_teardown_dropcol
           
 String driver
           
static String inline_xslt
           
protected  SixdmlLexer lexer
           
protected  SixdmlParser parser
           
 String version
           
 
Fields inherited from class junit.framework.TestCase
fName
 
Constructor Summary
SixdmlParserTest(String name)
          Constructor sets name of the test.
 
Method Summary
static void main(String[] args)
          Runs this test in JUnit GUI.
protected  void setUp()
          Set up for testing by creating a colection called "test_collection" from which all test queries, updates, etc.
static junit.framework.Test suite()
          Hook that allows JUnit GUI to run all tests in the class.
protected  void tearDown()
          After each test, delete the "test_collection" collection from which all test queries, updates, etc.
 void testConstrainSubCollection()
          Test constraining a sub-collection with an invalid schema.
 void testCreateBogusIndexInSubCollectionFail()
          Test creating an index of a type not supported by the DB in a sub-collection
 void testCreateConstrainedSubCollection()
          Test creating a constrained subcollection.
 void testCreateConstrainedSubCollectionFail()
          Test creating a constrained subcollection with an invalid schema
 void testCreateNestedSubCollection()
          Test creating a nested subcollection whose parent is a subcollection.
 void testCreateNestedSubCollectionFail()
          Test creating a nested subcollection whose parent is non-existent.
 void testCreateSubCollection()
          Test creating a sub-collection.
 void testCreateValueIndexInSubCollection()
          Test creating a value index in an empty sub-collection
 void testDeleteFromCollection1()
          Test deleting a node from entire collection.
 void testDeleteFromDocument1()
          Test deleting a node from document.
 void testDropConstraints1()
          Test dropping constraints on a subcollection.
 void testDropConstraints2()
          Test dropping constraints on a subcollection.
 void testDropDocumentFromSubCollection()
          Test dropping a document.
 void testDropDocumentOnSubCollectionFail()
          Test dropping a non-existent document.
 void testDropIndexOnSubCollection()
          Test dropping an index.
 void testDropIndexOnSubCollectionFail()
          Test dropping a non-existent index.
 void testDropNestedSubCollection()
          Test dropping a nested subcollection whose parent is a subcollection.
 void testDropSubCollection()
          Test dropping a sub-collection.
 void testInsertAfterInCollection1()
          Tests inserting an XML fragment before a node in a collection.
 void testInsertAfterInCollectionFail1()
          Tests inserting an XML fragment before a node in a collection.
 void testInsertAfterInDocument1()
          Tests inserting an XML fragment before a node in a document.
 void testInsertAfterInDocumentFail1()
          Tests inserting an XML fragment before a node in a document.
 void testInsertAtInCollection1()
          Tests inserting an XML fragment before a node in a collection.
 void testInsertAtInCollectionFail1()
          Tests inserting an XML fragment before a node in a collection.
 void testInsertAtInDocument1()
          Tests inserting an XML fragment before a node in a document.
 void testInsertAtInDocumentFail1()
          Tests inserting an XML fragment before a node in a document.
 void testInsertAttributeInCollection1()
          Insert attribute into a node.
 void testInsertAttributeInCollection2()
          Insert xmlns declaration into a node.
 void testInsertAttributeInCollection3()
          Insert attribute with namespace and prefix declared into a node.
 void testInsertAttributeInCollectionFail1()
          Insert attribute with prefix but no namespace declared into a node.
 void testInsertAttributeInCollectionFail2()
          Insert attribute into a node such that the schema is violated.
 void testInsertAttributeInCollectionFail3()
          Try and insert attribute into a comment node.
 void testInsertAttributeInDocument1()
          Insert attribute into a node.
 void testInsertAttributeInDocument2()
          Insert xmlns declaration into a node.
 void testInsertAttributeInDocument3()
          Insert attribute with namespace and prefix declared into a node.
 void testInsertAttributeInDocumentFail1()
          Insert attribute with prefix but no namespace declared into a node.
 void testInsertAttributeInDocumentFail2()
          Insert attribute into a node such that the schema is violated.
 void testInsertAttributeInDocumentFail3()
          Try and insert attribute into a comment node.
 void testInsertBeforeInCollection1()
          Tests inserting an XML fragment before a node in a collection.
 void testInsertBeforeInDocument1()
          Tests inserting an XML fragment before a node in a document.
 void testInsertBeforeInDocumentFail1()
          Tests inserting an XML fragment before a node in a document.
 void testInsertIntoConstrainedSubCollectionFromInlineXml()
          Test inserting inline XML into a constrained sub-collection
 void testInsertIntoConstrainedSubCollectionFromInlineXmlFail()
          Test inserting inline XML into a constrained sub-collection where the document is invalid against the collection's schema.
 void testInsertIntoConstrainedSubCollectionFromUrl()
          Test inserting document at a URL into a constrained sub-collection
 void testInsertIntoConstrainedSubCollectionFromUrlFail()
          Test inserting document at a URL into a constrained sub-collection where the document is invalid against the collection's schema.
 void testInsertIntoSubCollectionFromInlineXml()
          Test inserting inline XML into a sub-collection
 void testInsertIntoSubCollectionFromInlineXmlFail()
          Test inserting non-wellformed inline XML into a sub-collection
 void testInsertIntoSubCollectionFromUrl()
          Test inserting document at a URL into a sub-collection
 void testInsertIntoSubCollectionFromUrlFail1()
          Test inserting a non-existent document at a URL into a sub-collection
 void testInsertIntoSubCollectionFromUrlFail2()
          Test inserting a non-wellformed document at a URL into a sub-collection
 void testRenameInCollection1()
          Test renaming a node from one with a namespace to one without in a document.
 void testRenameInCollection2()
          Test renaming a node from one with a namespace to another with a namespace in a document.
 void testRenameInCollection3()
          Test renaming an attribute node from one without a namespace to one with in a document.
 void testRenameInDocument1()
          Test renaming a node from one with a namespace to one without in a document.
 void testRenameInDocument2()
          Test renaming a node from one with a namespace to another with a namespace in a document.
 void testRenameInDocument3()
          Test renaming an attribute node from one without a namespace to one with in a document.
 void testReplaceInCollection1()
          Replace one element with another.
 void testReplaceInCollectionFail1()
          Replace one element with other that make it invalid against the collection's schema.
 void testReplaceInCollectionFail2()
          Replace one element with other that makes non-wellformed.
 void testReplaceInDocument1()
          Replace one element with another.
 void testReplaceInDocumentFail1()
          Replace one element with other that make it invalid against the collection's schema.
 void testReplaceInDocumentFail2()
          Replace one element with other that makes non-wellformed.
 void testSelectFromCollectionAndTransform1()
          Test performing a query and transforming with an XSLT stylesheet.
 void testSelectFromCollectionAndTransformFail1()
          Test performing a query and transforming with a non-existent stylesheet.
 void testSelectFromCollectionAndTransformFail2()
          Test performing a query and transforming with a broken stylesheet.
 void testSelectFromCollectionAndTransformWithInline1()
          Test performing a query and transforming with an inline XSLT stylesheet.
 void testSelectFromCollectionAndTransformWithInlineFail1()
          Test performing a query and transforming with a bad inline stylesheet
 void testSelectFromCollectionFail1()
          Test performing a query on a non-existent collection.
 void testSelectFromDocument1()
          Test performing a query involving namespaces on a document.
 void testSelectFromDocument2()
          Test performing a query not involving namespaces on a document.
 void testSelectFromDocumentAndTransform1()
          Test performing a query and transforming with an XSLT stylesheet.
 void testSelectFromDocumentAndTransformFail1()
          Test performing a query and transforming with a non-existent stylesheet.
 void testSelectFromDocumentAndTransformFail2()
          Test performing a query and transforming with a broken stylesheet.
 void testSelectFromDocumentAndTransformFailWithInline1()
          Test performing a query and transforming with a bad stylesheet
 void testSelectFromDocumentAndTransformWithInline1()
          Test performing a query and transforming with an inline XSLT stylesheet.
 void testSelectFromDocumentFail1()
          Test performing a query on a non-existent document.
 void testSelectFromSubCollection1()
          Test performing a query involving namespaces on a collection.
 void testSelectFromSubCollection2()
          Test performing a query not involving namespaces on a collection.
 void testShowConstraintsOnCollectionWithoutSchema()
          Test showing the schema for a constrained subcollection without a schema.
 void testShowConstraintsOnCollectionWithSchema()
          Test showing the schema for a constrained subcollection with a schema.
 void testShowIndicesFromSubCollection2()
          Test showing the indices on a sub-collection with indices specified.
 void testShowIndicesOnSubCollection1()
          Test showing the indices on a sub-collection with no indices specified.
 void testShowNestedSubCollection()
          Test showing a nested subcollection whose parent is a subcollection.
 void testShowSubCollection()
          Test showing a sub-collection.
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, name, run, run, runBare, runTest, setName, toString
 
Methods inherited from class junit.framework.Assert
assert, assert, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertNotNull, assertNotNull, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

lexer

protected SixdmlLexer lexer

parser

protected SixdmlParser parser

driver

public String driver

version

public String version

cmd_setup_createcol

public static final String cmd_setup_createcol

cmd_teardown_dropcol

public static final String cmd_teardown_dropcol

cmd_createcol1

public static final String cmd_createcol1

cmd_createcol2

public static final String cmd_createcol2

cmd_createcol3

public static final String cmd_createcol3

cmd_createcol4

public static final String cmd_createcol4

cmd_show_schema1

public static final String cmd_show_schema1

cmd_dropcol1

public static final String cmd_dropcol1

cmd_dropcol2

public static final String cmd_dropcol2

cmd_dropconstr1

public static final String cmd_dropconstr1

cmd_constrcol1

public static final String cmd_constrcol1

cmd_showcol1

public static final String cmd_showcol1

cmd_showcol2

public static final String cmd_showcol2

cmd_insrt_url_into1

public static final String cmd_insrt_url_into1

cmd_insrt_url_into2

public static final String cmd_insrt_url_into2

cmd_insrt_url_into3

public static final String cmd_insrt_url_into3

cmd_insrt_url_into4

public static final String cmd_insrt_url_into4

cmd_insrt_xml_into1

public static final String cmd_insrt_xml_into1

cmd_insrt_xml_into2

public static final String cmd_insrt_xml_into2

cmd_insrt_xml_into3

public static final String cmd_insrt_xml_into3

cmd_dropfromcol1

public static final String cmd_dropfromcol1

cmd_createindx1

public static final String cmd_createindx1

cmd_createindx2

public static final String cmd_createindx2

cmd_createindx3

public static final String cmd_createindx3

cmd_showindices

public static final String cmd_showindices

cmd_dropindx1

public static final String cmd_dropindx1

cmd_select1

public static final String cmd_select1

cmd_select2

public static final String cmd_select2

cmd_select3

public static final String cmd_select3

cmd_select4

public static final String cmd_select4

cmd_select5

public static final String cmd_select5

cmd_select6

public static final String cmd_select6

cmd_select7

public static final String cmd_select7

cmd_select8

public static final String cmd_select8

cmd_select9

public static final String cmd_select9

cmd_select10

public static final String cmd_select10

inline_xslt

public static final String inline_xslt

cmd_select11

public static final String cmd_select11

cmd_select12

public static final String cmd_select12

cmd_select13

public static final String cmd_select13

cmd_select14

public static final String cmd_select14

cmd_insrt_b4_1

public static final String cmd_insrt_b4_1

cmd_insrt_b4_2

public static final String cmd_insrt_b4_2

cmd_insrt_b4_3

public static final String cmd_insrt_b4_3

cmd_insrt_b4_4

public static final String cmd_insrt_b4_4

cmd_insrt_at_1

public static final String cmd_insrt_at_1

cmd_insrt_at_2

public static final String cmd_insrt_at_2

cmd_insrt_at_3

public static final String cmd_insrt_at_3

cmd_insrt_at_4

public static final String cmd_insrt_at_4

cmd_insrt_after_1

public static final String cmd_insrt_after_1

cmd_insrt_after_2

public static final String cmd_insrt_after_2

cmd_insrt_after_3

public static final String cmd_insrt_after_3

cmd_insrt_after_4

public static final String cmd_insrt_after_4

cmd_rplc1

public static final String cmd_rplc1

cmd_rplc2

public static final String cmd_rplc2

cmd_rplc3

public static final String cmd_rplc3

cmd_rplc4

public static final String cmd_rplc4

cmd_rplc5

public static final String cmd_rplc5

cmd_rplc6

public static final String cmd_rplc6

cmd_insrt_attr1

public static final String cmd_insrt_attr1

cmd_insrt_attr2

public static final String cmd_insrt_attr2

cmd_insrt_attr3

public static final String cmd_insrt_attr3

cmd_insrt_attr4

public static final String cmd_insrt_attr4

cmd_insrt_attr5

public static final String cmd_insrt_attr5

cmd_insrt_attr6

public static final String cmd_insrt_attr6

cmd_insrt_attr7

public static final String cmd_insrt_attr7

cmd_insrt_attr8

public static final String cmd_insrt_attr8

cmd_insrt_attr9

public static final String cmd_insrt_attr9

cmd_insrt_attr10

public static final String cmd_insrt_attr10

cmd_delete1

public static final String cmd_delete1

cmd_delete2

public static final String cmd_delete2

cmd_rename1

public static final String cmd_rename1

cmd_rename2

public static final String cmd_rename2

cmd_rename3

public static final String cmd_rename3

cmd_rename4

public static final String cmd_rename4

cmd_rename5

public static final String cmd_rename5

cmd_rename6

public static final String cmd_rename6
Constructor Detail

SixdmlParserTest

public SixdmlParserTest(String name)
Constructor sets name of the test.
Parameters:
name - the name of the test.
Method Detail

setUp

protected void setUp()
              throws Exception
Set up for testing by creating a colection called "test_collection" from which all test queries, updates, etc. will be run.
NOTE: Assumes that being able to parse a CREATE COLLECTION statement for a root-level collection works.
Overrides:
setUp in class junit.framework.TestCase

tearDown

protected void tearDown()
                 throws Exception
After each test, delete the "test_collection" collection from which all test queries, updates, etc. will be run.
NOTE: Assumes that being able to parse a DROP COLLECTION statement for a root-level collection works.
Overrides:
tearDown in class junit.framework.TestCase

testCreateSubCollection

public void testCreateSubCollection()
                             throws Exception
Test creating a sub-collection.

testCreateNestedSubCollection

public void testCreateNestedSubCollection()
                                   throws Exception
Test creating a nested subcollection whose parent is a subcollection.

testCreateNestedSubCollectionFail

public void testCreateNestedSubCollectionFail()
Test creating a nested subcollection whose parent is non-existent.

testShowSubCollection

public void testShowSubCollection()
                           throws Exception
Test showing a sub-collection.

testShowNestedSubCollection

public void testShowNestedSubCollection()
                                 throws Exception
Test showing a nested subcollection whose parent is a subcollection.

testDropSubCollection

public void testDropSubCollection()
                           throws Exception
Test dropping a sub-collection.

testDropNestedSubCollection

public void testDropNestedSubCollection()
                                 throws Exception
Test dropping a nested subcollection whose parent is a subcollection.

testCreateConstrainedSubCollection

public void testCreateConstrainedSubCollection()
                                        throws Exception
Test creating a constrained subcollection.

testCreateConstrainedSubCollectionFail

public void testCreateConstrainedSubCollectionFail()
Test creating a constrained subcollection with an invalid schema

testConstrainSubCollection

public void testConstrainSubCollection()
                                throws Exception
Test constraining a sub-collection with an invalid schema.

testShowConstraintsOnCollectionWithSchema

public void testShowConstraintsOnCollectionWithSchema()
                                               throws Exception
Test showing the schema for a constrained subcollection with a schema.

testShowConstraintsOnCollectionWithoutSchema

public void testShowConstraintsOnCollectionWithoutSchema()
                                                  throws Exception
Test showing the schema for a constrained subcollection without a schema.

testDropConstraints1

public void testDropConstraints1()
                          throws Exception
Test dropping constraints on a subcollection.

testDropConstraints2

public void testDropConstraints2()
                          throws Exception
Test dropping constraints on a subcollection.

testInsertIntoSubCollectionFromUrl

public void testInsertIntoSubCollectionFromUrl()
                                        throws Exception
Test inserting document at a URL into a sub-collection

testInsertIntoConstrainedSubCollectionFromUrl

public void testInsertIntoConstrainedSubCollectionFromUrl()
                                                   throws Exception
Test inserting document at a URL into a constrained sub-collection

testInsertIntoSubCollectionFromUrlFail1

public void testInsertIntoSubCollectionFromUrlFail1()
                                             throws Exception
Test inserting a non-existent document at a URL into a sub-collection

testInsertIntoSubCollectionFromUrlFail2

public void testInsertIntoSubCollectionFromUrlFail2()
                                             throws Exception
Test inserting a non-wellformed document at a URL into a sub-collection

testInsertIntoConstrainedSubCollectionFromUrlFail

public void testInsertIntoConstrainedSubCollectionFromUrlFail()
                                                       throws Exception
Test inserting document at a URL into a constrained sub-collection where the document is invalid against the collection's schema.

testInsertIntoSubCollectionFromInlineXml

public void testInsertIntoSubCollectionFromInlineXml()
                                              throws Exception
Test inserting inline XML into a sub-collection

testInsertIntoConstrainedSubCollectionFromInlineXml

public void testInsertIntoConstrainedSubCollectionFromInlineXml()
                                                         throws Exception
Test inserting inline XML into a constrained sub-collection

testInsertIntoSubCollectionFromInlineXmlFail

public void testInsertIntoSubCollectionFromInlineXmlFail()
                                                  throws Exception
Test inserting non-wellformed inline XML into a sub-collection

testInsertIntoConstrainedSubCollectionFromInlineXmlFail

public void testInsertIntoConstrainedSubCollectionFromInlineXmlFail()
                                                             throws Exception
Test inserting inline XML into a constrained sub-collection where the document is invalid against the collection's schema.

testCreateValueIndexInSubCollection

public void testCreateValueIndexInSubCollection()
                                         throws Exception
Test creating a value index in an empty sub-collection

testCreateBogusIndexInSubCollectionFail

public void testCreateBogusIndexInSubCollectionFail()
Test creating an index of a type not supported by the DB in a sub-collection

testShowIndicesOnSubCollection1

public void testShowIndicesOnSubCollection1()
                                     throws Exception
Test showing the indices on a sub-collection with no indices specified.

testDropIndexOnSubCollectionFail

public void testDropIndexOnSubCollectionFail()
Test dropping a non-existent index.

testDropIndexOnSubCollection

public void testDropIndexOnSubCollection()
                                  throws Exception
Test dropping an index.

testDropDocumentOnSubCollectionFail

public void testDropDocumentOnSubCollectionFail()
Test dropping a non-existent document.

testDropDocumentFromSubCollection

public void testDropDocumentFromSubCollection()
                                       throws Exception
Test dropping a document.

testShowIndicesFromSubCollection2

public void testShowIndicesFromSubCollection2()
                                       throws Exception
Test showing the indices on a sub-collection with indices specified.

testSelectFromDocument1

public void testSelectFromDocument1()
                             throws Exception
Test performing a query involving namespaces on a document.

testSelectFromSubCollection1

public void testSelectFromSubCollection1()
                                  throws Exception
Test performing a query involving namespaces on a collection.

testSelectFromDocument2

public void testSelectFromDocument2()
                             throws Exception
Test performing a query not involving namespaces on a document.

testSelectFromDocumentFail1

public void testSelectFromDocumentFail1()
Test performing a query on a non-existent document.

testSelectFromDocumentAndTransformWithInline1

public void testSelectFromDocumentAndTransformWithInline1()
                                                   throws Exception
Test performing a query and transforming with an inline XSLT stylesheet.

testSelectFromDocumentAndTransformFailWithInline1

public void testSelectFromDocumentAndTransformFailWithInline1()
Test performing a query and transforming with a bad stylesheet

testSelectFromDocumentAndTransform1

public void testSelectFromDocumentAndTransform1()
                                         throws Exception
Test performing a query and transforming with an XSLT stylesheet.

testSelectFromDocumentAndTransformFail1

public void testSelectFromDocumentAndTransformFail1()
Test performing a query and transforming with a non-existent stylesheet.

testSelectFromDocumentAndTransformFail2

public void testSelectFromDocumentAndTransformFail2()
Test performing a query and transforming with a broken stylesheet.

testSelectFromSubCollection2

public void testSelectFromSubCollection2()
                                  throws Exception
Test performing a query not involving namespaces on a collection.

testSelectFromCollectionFail1

public void testSelectFromCollectionFail1()
Test performing a query on a non-existent collection.

testSelectFromCollectionAndTransform1

public void testSelectFromCollectionAndTransform1()
                                           throws Exception
Test performing a query and transforming with an XSLT stylesheet.

testSelectFromCollectionAndTransformFail1

public void testSelectFromCollectionAndTransformFail1()
Test performing a query and transforming with a non-existent stylesheet.

testSelectFromCollectionAndTransformFail2

public void testSelectFromCollectionAndTransformFail2()
Test performing a query and transforming with a broken stylesheet.

testSelectFromCollectionAndTransformWithInline1

public void testSelectFromCollectionAndTransformWithInline1()
                                                     throws Exception
Test performing a query and transforming with an inline XSLT stylesheet.

testSelectFromCollectionAndTransformWithInlineFail1

public void testSelectFromCollectionAndTransformWithInlineFail1()
Test performing a query and transforming with a bad inline stylesheet

testInsertBeforeInDocument1

public void testInsertBeforeInDocument1()
                                 throws Exception
Tests inserting an XML fragment before a node in a document.

testInsertBeforeInCollection1

public void testInsertBeforeInCollection1()
                                   throws Exception
Tests inserting an XML fragment before a node in a collection.

testInsertBeforeInDocumentFail1

public void testInsertBeforeInDocumentFail1()
Tests inserting an XML fragment before a node in a document.

testInsertAtInDocument1

public void testInsertAtInDocument1()
                             throws Exception
Tests inserting an XML fragment before a node in a document.

testInsertAtInCollection1

public void testInsertAtInCollection1()
                               throws Exception
Tests inserting an XML fragment before a node in a collection.

testInsertAtInDocumentFail1

public void testInsertAtInDocumentFail1()
Tests inserting an XML fragment before a node in a document.

testInsertAtInCollectionFail1

public void testInsertAtInCollectionFail1()
Tests inserting an XML fragment before a node in a collection.

testInsertAfterInDocument1

public void testInsertAfterInDocument1()
                                throws Exception
Tests inserting an XML fragment before a node in a document.

testInsertAfterInCollection1

public void testInsertAfterInCollection1()
                                  throws Exception
Tests inserting an XML fragment before a node in a collection.

testInsertAfterInDocumentFail1

public void testInsertAfterInDocumentFail1()
Tests inserting an XML fragment before a node in a document.

testInsertAfterInCollectionFail1

public void testInsertAfterInCollectionFail1()
Tests inserting an XML fragment before a node in a collection.

testReplaceInCollection1

public void testReplaceInCollection1()
                              throws Exception
Replace one element with another.

testReplaceInCollectionFail1

public void testReplaceInCollectionFail1()
Replace one element with other that make it invalid against the collection's schema.

testReplaceInCollectionFail2

public void testReplaceInCollectionFail2()
Replace one element with other that makes non-wellformed.

testReplaceInDocument1

public void testReplaceInDocument1()
                            throws Exception
Replace one element with another.

testReplaceInDocumentFail1

public void testReplaceInDocumentFail1()
Replace one element with other that make it invalid against the collection's schema.

testReplaceInDocumentFail2

public void testReplaceInDocumentFail2()
Replace one element with other that makes non-wellformed.

testInsertAttributeInDocument1

public void testInsertAttributeInDocument1()
                                    throws Exception
Insert attribute into a node.

testInsertAttributeInDocument2

public void testInsertAttributeInDocument2()
                                    throws Exception
Insert xmlns declaration into a node.

testInsertAttributeInDocument3

public void testInsertAttributeInDocument3()
                                    throws Exception
Insert attribute with namespace and prefix declared into a node.

testInsertAttributeInDocumentFail1

public void testInsertAttributeInDocumentFail1()
Insert attribute with prefix but no namespace declared into a node.

testInsertAttributeInDocumentFail2

public void testInsertAttributeInDocumentFail2()
Insert attribute into a node such that the schema is violated.

testInsertAttributeInDocumentFail3

public void testInsertAttributeInDocumentFail3()
Try and insert attribute into a comment node.

testInsertAttributeInCollection1

public void testInsertAttributeInCollection1()
                                      throws Exception
Insert attribute into a node.

testInsertAttributeInCollection2

public void testInsertAttributeInCollection2()
                                      throws Exception
Insert xmlns declaration into a node.

testInsertAttributeInCollection3

public void testInsertAttributeInCollection3()
                                      throws Exception
Insert attribute with namespace and prefix declared into a node.

testInsertAttributeInCollectionFail1

public void testInsertAttributeInCollectionFail1()
Insert attribute with prefix but no namespace declared into a node.

testInsertAttributeInCollectionFail2

public void testInsertAttributeInCollectionFail2()
Insert attribute into a node such that the schema is violated.

testInsertAttributeInCollectionFail3

public void testInsertAttributeInCollectionFail3()
Try and insert attribute into a comment node.

testDeleteFromDocument1

public void testDeleteFromDocument1()
                             throws Exception
Test deleting a node from document.

testDeleteFromCollection1

public void testDeleteFromCollection1()
                               throws Exception
Test deleting a node from entire collection.

testRenameInDocument1

public void testRenameInDocument1()
                           throws Exception
Test renaming a node from one with a namespace to one without in a document.

testRenameInDocument2

public void testRenameInDocument2()
                           throws Exception
Test renaming a node from one with a namespace to another with a namespace in a document.

testRenameInDocument3

public void testRenameInDocument3()
                           throws Exception
Test renaming an attribute node from one without a namespace to one with in a document.

testRenameInCollection1

public void testRenameInCollection1()
                             throws Exception
Test renaming a node from one with a namespace to one without in a document.

testRenameInCollection2

public void testRenameInCollection2()
                             throws Exception
Test renaming a node from one with a namespace to another with a namespace in a document.

testRenameInCollection3

public void testRenameInCollection3()
                             throws Exception
Test renaming an attribute node from one without a namespace to one with in a document.

suite

public static junit.framework.Test suite()
Hook that allows JUnit GUI to run all tests in the class.

main

public static void main(