public final class XMLTypeAndOpsTest extends BaseJDBCTestCase
| Modifier and Type | Class and Description |
|---|---|
private static class |
XMLTypeAndOpsTest.XMLTestSetup
Wrapper for the tests in XMLTypeAndOpsTest.
|
DEFAULT_DB_DIR, DERBY_LOG, ERRORSTACKTRACEFILE| Constructor and Description |
|---|
XMLTypeAndOpsTest(java.lang.String name)
Public constructor required for running test as standalone JUnit.
|
| Modifier and Type | Method and Description |
|---|---|
static junit.framework.Test |
suite()
Return a suite that runs a set of tests which are meant to
be the equivalent to the test cases in the old xml_general.sql.
|
void |
testAttrSerialization()
DERBY-1759: Serialization of attribute nodes.
|
void |
testIllegalNullInserts()
Check insertion of null values into XML columns.
|
void |
testIllegalOps()
Test additional restrictions on use of XML values.
|
void |
testIsNull()
Test use of the "is [not] null" clause with XML values.
|
void |
testNestedXMLQuery() |
void |
testNonXMLColsWithXMLVals()
Test insertion of XML values into non-XML columns.
|
void |
testNumericReturnValues()
Test how numeric values returned by XPath queries are formatted.
|
void |
testTopLevelSelect()
Derby doesn't currently support XML values in a top-level
result set.
|
void |
testTriggerSetXML()
Test use of XML columns in a trigger's "SET" clause.
|
void |
testTriggerSPSWithXML()
DERBY-1718 create trigger fails when SPS contains XML
related op.
|
void |
testXMLCasting()
Test casting of values to type XML.
|
void |
testXMLColCreation()
Test creation of XML columns.
|
void |
testXMLColsWithNonXMLVals()
Test insertion of non-XML values into XML columns.
|
void |
testXMLComparisons()
Test simple comparisons with XML.
|
void |
testXMLExists()
Various tests for the XMLEXISTS operator.
|
void |
testXMLInNonXMLOps()
Try to use XML values in non-XML operations.
|
void |
testXMLParse()
Various tests for the XMLPARSE operator.
|
void |
testXMLParseSerializeCombos()
Various tests with XMLPARSE and XMLSERIALIZE combinations.
|
void |
testXMLQuery()
Various tests for the XMLQUERY operator.
|
void |
testXMLQueryInsert() |
void |
testXMLQueryUpdate() |
void |
testXMLSerialize()
Various tests for the XMLSERIALIZE operator.
|
assertCallError, assertCheckTable, assertCompileError, assertEquals, assertEquals, assertEquals, assertEquivalentDataType, assertErrorCode, assertGetIntError, assertNextError, assertPreparedStatementError, assertSQLExceptionEquals, assertSQLState, assertSQLState, assertStatementError, assertStatementError, assertStatementError, assertStatementError, assertStatementErrorUnordered, assertTableRowCount, assertUpdateCount, assertUpdateCount, assertWarning, checkAllConsistency, checkEstimatedRowCount, closeStatement, commit, createStatement, createStatement, createStatement, dropTable, dropTable, dropView, dropView, emptyStatementCache, getClientTransactionID, getConnection, getDatabaseProperty, getLastSQLException, initializeConnection, openConnection, openDefaultConnection, openDefaultConnection, openDefaultConnection, openUserConnection, prepareCall, prepareCall, prepareCall, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, rollback, runBare, runBareOverridable, runScript, runScript, runSQLCommands, setAutoCommit, tearDown, usingDB2Client, usingDerbyNetClient, usingEmbeddedalarm, assertDirectoryDeleted, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertExecJavaCmdAsExpected, assertLaunchedJUnitTestMethod, assertLaunchedJUnitTestMethod, assertSecurityManager, assertThrowableEquals, currentDirectory, execJavaCmd, execJavaCmd, fail, getClassVersionMajor, getEmmaJar, getFailureFolder, getFilesWith, getJavaExecutableName, getSystemProperty, getTestConfiguration, getTestResource, hasInterruptibleIO, isCVM, isIBMJVM, isJ9Platform, isJava5, isJava7, isJava8, isPhoneME, isPlatform, isSunJVM, isWindowsPlatform, openTestResource, println, printStackTrace, readProcessOutput, removeDirectory, removeDirectory, removeFiles, removeSystemProperty, runsWithEmma, runsWithJaCoCo, setSystemProperty, sleep, sleepAtLeastOneTick, traceitassertEquals, 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, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runTest, setName, setUp, toStringpublic XMLTypeAndOpsTest(java.lang.String name)
public static junit.framework.Test suite()
public void testXMLColCreation()
throws java.lang.Exception
java.lang.Exceptionpublic void testIllegalNullInserts()
throws java.lang.Exception
java.lang.Exceptionpublic void testXMLColsWithNonXMLVals()
throws java.lang.Exception
java.lang.Exceptionpublic void testNonXMLColsWithXMLVals()
throws java.lang.Exception
java.lang.Exceptionpublic void testXMLCasting()
throws java.lang.Exception
java.lang.Exceptionpublic void testXMLInNonXMLOps()
throws java.lang.Exception
java.lang.Exceptionpublic void testXMLComparisons()
throws java.lang.Exception
java.lang.Exceptionpublic void testIllegalOps()
throws java.lang.Exception
java.lang.Exceptionpublic void testTriggerSetXML()
throws java.lang.Exception
java.lang.Exceptionpublic void testXMLParse()
throws java.lang.Exception
java.lang.Exceptionpublic void testIsNull()
throws java.lang.Exception
java.lang.Exceptionpublic void testTopLevelSelect()
throws java.lang.Exception
java.lang.Exceptionpublic void testXMLSerialize()
throws java.lang.Exception
java.lang.Exceptionpublic void testXMLParseSerializeCombos()
throws java.lang.Exception
java.lang.Exceptionpublic void testXMLExists()
throws java.lang.Exception
java.lang.Exceptionpublic void testXMLQuery()
throws java.lang.Exception
java.lang.Exceptionpublic void testXMLQueryInsert()
throws java.lang.Exception
java.lang.Exceptionpublic void testXMLQueryUpdate()
throws java.lang.Exception
java.lang.Exceptionpublic void testNestedXMLQuery()
throws java.lang.Exception
java.lang.Exceptionpublic void testAttrSerialization()
throws java.lang.Exception
java.lang.Exceptionpublic void testTriggerSPSWithXML()
throws java.lang.Exception
java.lang.Exceptionpublic void testNumericReturnValues()
throws java.sql.SQLException
java.sql.SQLExceptionApache Derby V10.10 Internals - Copyright © 2004,2014 The Apache Software Foundation. All Rights Reserved.