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, assertCommitError, assertCompileError, assertEquals, assertEquals, assertEquals, assertEquivalentDataType, assertErrorCode, assertGetIntError, assertNextError, assertPreparedStatementError, assertResults, assertResults, assertSQLExceptionEquals, assertSQLState, assertSQLState, assertStatementError, assertStatementError, assertStatementError, assertStatementError, assertStatementErrorUnordered, assertTableRowCount, assertUpdateCount, assertUpdateCount, assertWarning, chattyPrepare, chattyPrepareCall, checkAllConsistency, checkEstimatedRowCount, closeStatement, commit, createStatement, createStatement, createStatement, dropTable, dropTable, dropView, dropView, dumpRs, dumpRs, emptyStatementCache, executeQuery, expectCompilationError, expectCompilationError, expectExecutionError, getClientTransactionID, getConnection, getDatabaseProperty, getLastSQLException, goodStatement, goodUpdate, 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, usingEmbedded
alarm, assertDirectoryDeleted, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertExecJavaCmdAsExpected, assertLaunchedJUnitTestMethod, assertLaunchedJUnitTestMethod, assertSameNullness, assertSecurityManager, assertThrowableEquals, currentDirectory, execJavaCmd, execJavaCmd, execJavaCmd, fail, getClassVersionMajor, getEmmaJar, getFailureFolder, getFilesWith, getJavaExecutableName, getSystemProperty, getTestConfiguration, getTestResource, hasInterruptibleIO, isCVM, isIBMJVM, isJ9Platform, isJava5, isJava7, isPhoneME, isPlatform, isSunJVM, isWindowsPlatform, newAssertionFailedError, openTestResource, println, printStackTrace, readProcessOutput, removeDirectory, removeDirectory, removeFiles, removeSystemProperty, runsWithEmma, runsWithJaCoCo, setSystemErr, setSystemOut, setSystemProperty, sleep, sleepAtLeastOneTick, traceit, vmAtLeast
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, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runTest, setName, setUp, toString
public XMLTypeAndOpsTest(java.lang.String name)
public static junit.framework.Test suite()
public void testXMLColCreation() throws java.lang.Exception
java.lang.Exception
public void testIllegalNullInserts() throws java.lang.Exception
java.lang.Exception
public void testXMLColsWithNonXMLVals() throws java.lang.Exception
java.lang.Exception
public void testNonXMLColsWithXMLVals() throws java.lang.Exception
java.lang.Exception
public void testXMLCasting() throws java.lang.Exception
java.lang.Exception
public void testXMLInNonXMLOps() throws java.lang.Exception
java.lang.Exception
public void testXMLComparisons() throws java.lang.Exception
java.lang.Exception
public void testIllegalOps() throws java.lang.Exception
java.lang.Exception
public void testTriggerSetXML() throws java.lang.Exception
java.lang.Exception
public void testXMLParse() throws java.lang.Exception
java.lang.Exception
public void testIsNull() throws java.lang.Exception
java.lang.Exception
public void testTopLevelSelect() throws java.lang.Exception
java.lang.Exception
public void testXMLSerialize() throws java.lang.Exception
java.lang.Exception
public void testXMLParseSerializeCombos() throws java.lang.Exception
java.lang.Exception
public void testXMLExists() throws java.lang.Exception
java.lang.Exception
public void testXMLQuery() throws java.lang.Exception
java.lang.Exception
public void testXMLQueryInsert() throws java.lang.Exception
java.lang.Exception
public void testXMLQueryUpdate() throws java.lang.Exception
java.lang.Exception
public void testNestedXMLQuery() throws java.lang.Exception
java.lang.Exception
public void testAttrSerialization() throws java.lang.Exception
java.lang.Exception
public void testTriggerSPSWithXML() throws java.lang.Exception
java.lang.Exception
public void testNumericReturnValues() throws java.sql.SQLException
java.sql.SQLException
Apache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.