public class StatementKeyFactoryTest extends BaseTestCase
Objects implementing StatementKey is crucial for correct
operation of the JDBC statement object cache.
JDBCStatementCacheDEFAULT_DB_DIR, DERBY_LOG, ERRORSTACKTRACEFILE| Constructor and Description |
|---|
StatementKeyFactoryTest(java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
static junit.framework.Test |
suite()
Returns the appropriate tests.
|
void |
testCallableVsPrepared() |
void |
testCreationBasic() |
void |
testCreationBasicWithNulls()
Creating keys with
null for required information should
fail, as it can lead to NPEs in the key implementations and/or the wrong
statement to be fetched from the cache. |
void |
testEqualityBasic() |
void |
testEqualityDefaultNoAutoGenKey() |
void |
testEqualityNoAutoVsAutoGenKey() |
void |
testUnequalityVarious() |
alarm, 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, runBare, 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, tearDown, toStringpublic void testCreationBasicWithNulls()
null for required information should
fail, as it can lead to NPEs in the key implementations and/or the wrong
statement to be fetched from the cache.public void testCreationBasic()
public void testEqualityBasic()
public void testEqualityDefaultNoAutoGenKey()
public void testEqualityNoAutoVsAutoGenKey()
public void testUnequalityVarious()
public void testCallableVsPrepared()
public static junit.framework.Test suite()
Run only client/server, because the code being tested does not live in the embedded driver (yet).
Apache Derby V10.10 Internals - Copyright © 2004,2014 The Apache Software Foundation. All Rights Reserved.