|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--junit.framework.Assert
|
+--junit.framework.TestCase
|
+--org.sixdml.parser.SixdmlParserTest
SixdmlParserTest.java Created: Tue Jan 22 03:21:07 2002
| 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 |
|
| Field Detail |
protected SixdmlLexer lexer
protected SixdmlParser parser
public String driver
public String version
public static final String cmd_setup_createcol
public static final String cmd_teardown_dropcol
public static final String cmd_createcol1
public static final String cmd_createcol2
public static final String cmd_createcol3
public static final String cmd_createcol4
public static final String cmd_show_schema1
public static final String cmd_dropcol1
public static final String cmd_dropcol2
public static final String cmd_dropconstr1
public static final String cmd_constrcol1
public static final String cmd_showcol1
public static final String cmd_showcol2
public static final String cmd_insrt_url_into1
public static final String cmd_insrt_url_into2
public static final String cmd_insrt_url_into3
public static final String cmd_insrt_url_into4
public static final String cmd_insrt_xml_into1
public static final String cmd_insrt_xml_into2
public static final String cmd_insrt_xml_into3
public static final String cmd_dropfromcol1
public static final String cmd_createindx1
public static final String cmd_createindx2
public static final String cmd_createindx3
public static final String cmd_showindices
public static final String cmd_dropindx1
public static final String cmd_select1
public static final String cmd_select2
public static final String cmd_select3
public static final String cmd_select4
public static final String cmd_select5
public static final String cmd_select6
public static final String cmd_select7
public static final String cmd_select8
public static final String cmd_select9
public static final String cmd_select10
public static final String inline_xslt
public static final String cmd_select11
public static final String cmd_select12
public static final String cmd_select13
public static final String cmd_select14
public static final String cmd_insrt_b4_1
public static final String cmd_insrt_b4_2
public static final String cmd_insrt_b4_3
public static final String cmd_insrt_b4_4
public static final String cmd_insrt_at_1
public static final String cmd_insrt_at_2
public static final String cmd_insrt_at_3
public static final String cmd_insrt_at_4
public static final String cmd_insrt_after_1
public static final String cmd_insrt_after_2
public static final String cmd_insrt_after_3
public static final String cmd_insrt_after_4
public static final String cmd_rplc1
public static final String cmd_rplc2
public static final String cmd_rplc3
public static final String cmd_rplc4
public static final String cmd_rplc5
public static final String cmd_rplc6
public static final String cmd_insrt_attr1
public static final String cmd_insrt_attr2
public static final String cmd_insrt_attr3
public static final String cmd_insrt_attr4
public static final String cmd_insrt_attr5
public static final String cmd_insrt_attr6
public static final String cmd_insrt_attr7
public static final String cmd_insrt_attr8
public static final String cmd_insrt_attr9
public static final String cmd_insrt_attr10
public static final String cmd_delete1
public static final String cmd_delete2
public static final String cmd_rename1
public static final String cmd_rename2
public static final String cmd_rename3
public static final String cmd_rename4
public static final String cmd_rename5
public static final String cmd_rename6
| Constructor Detail |
public SixdmlParserTest(String name)
name - the name of the test.| Method Detail |
protected void setUp()
throws Exception
setUp in class junit.framework.TestCase
protected void tearDown()
throws Exception
tearDown in class junit.framework.TestCase
public void testCreateSubCollection()
throws Exception
public void testCreateNestedSubCollection()
throws Exception
public void testCreateNestedSubCollectionFail()
public void testShowSubCollection()
throws Exception
public void testShowNestedSubCollection()
throws Exception
public void testDropSubCollection()
throws Exception
public void testDropNestedSubCollection()
throws Exception
public void testCreateConstrainedSubCollection()
throws Exception
public void testCreateConstrainedSubCollectionFail()
public void testConstrainSubCollection()
throws Exception
public void testShowConstraintsOnCollectionWithSchema()
throws Exception
public void testShowConstraintsOnCollectionWithoutSchema()
throws Exception
public void testDropConstraints1()
throws Exception
public void testDropConstraints2()
throws Exception
public void testInsertIntoSubCollectionFromUrl()
throws Exception
public void testInsertIntoConstrainedSubCollectionFromUrl()
throws Exception
public void testInsertIntoSubCollectionFromUrlFail1()
throws Exception
public void testInsertIntoSubCollectionFromUrlFail2()
throws Exception
public void testInsertIntoConstrainedSubCollectionFromUrlFail()
throws Exception
public void testInsertIntoSubCollectionFromInlineXml()
throws Exception
public void testInsertIntoConstrainedSubCollectionFromInlineXml()
throws Exception
public void testInsertIntoSubCollectionFromInlineXmlFail()
throws Exception
public void testInsertIntoConstrainedSubCollectionFromInlineXmlFail()
throws Exception
public void testCreateValueIndexInSubCollection()
throws Exception
public void testCreateBogusIndexInSubCollectionFail()
public void testShowIndicesOnSubCollection1()
throws Exception
public void testDropIndexOnSubCollectionFail()
public void testDropIndexOnSubCollection()
throws Exception
public void testDropDocumentOnSubCollectionFail()
public void testDropDocumentFromSubCollection()
throws Exception
public void testShowIndicesFromSubCollection2()
throws Exception
public void testSelectFromDocument1()
throws Exception
public void testSelectFromSubCollection1()
throws Exception
public void testSelectFromDocument2()
throws Exception
public void testSelectFromDocumentFail1()
public void testSelectFromDocumentAndTransformWithInline1()
throws Exception
public void testSelectFromDocumentAndTransformFailWithInline1()
public void testSelectFromDocumentAndTransform1()
throws Exception
public void testSelectFromDocumentAndTransformFail1()
public void testSelectFromDocumentAndTransformFail2()
public void testSelectFromSubCollection2()
throws Exception
public void testSelectFromCollectionFail1()
public void testSelectFromCollectionAndTransform1()
throws Exception
public void testSelectFromCollectionAndTransformFail1()
public void testSelectFromCollectionAndTransformFail2()
public void testSelectFromCollectionAndTransformWithInline1()
throws Exception
public void testSelectFromCollectionAndTransformWithInlineFail1()
public void testInsertBeforeInDocument1()
throws Exception
public void testInsertBeforeInCollection1()
throws Exception
public void testInsertBeforeInDocumentFail1()
public void testInsertAtInDocument1()
throws Exception
public void testInsertAtInCollection1()
throws Exception
public void testInsertAtInDocumentFail1()
public void testInsertAtInCollectionFail1()
public void testInsertAfterInDocument1()
throws Exception
public void testInsertAfterInCollection1()
throws Exception
public void testInsertAfterInDocumentFail1()
public void testInsertAfterInCollectionFail1()
public void testReplaceInCollection1()
throws Exception
public void testReplaceInCollectionFail1()
public void testReplaceInCollectionFail2()
public void testReplaceInDocument1()
throws Exception
public void testReplaceInDocumentFail1()
public void testReplaceInDocumentFail2()
public void testInsertAttributeInDocument1()
throws Exception
public void testInsertAttributeInDocument2()
throws Exception
public void testInsertAttributeInDocument3()
throws Exception
public void testInsertAttributeInDocumentFail1()
public void testInsertAttributeInDocumentFail2()
public void testInsertAttributeInDocumentFail3()
public void testInsertAttributeInCollection1()
throws Exception
public void testInsertAttributeInCollection2()
throws Exception
public void testInsertAttributeInCollection3()
throws Exception
public void testInsertAttributeInCollectionFail1()
public void testInsertAttributeInCollectionFail2()
public void testInsertAttributeInCollectionFail3()
public void testDeleteFromDocument1()
throws Exception
public void testDeleteFromCollection1()
throws Exception
public void testRenameInDocument1()
throws Exception
public void testRenameInDocument2()
throws Exception
public void testRenameInDocument3()
throws Exception
public void testRenameInCollection1()
throws Exception
public void testRenameInCollection2()
throws Exception
public void testRenameInCollection3()
throws Exception
public static junit.framework.Test suite()
public static void main(