public class Derby5730Test extends BaseTestCase
| Modifier and Type | Field and Description |
|---|---|
private static java.lang.Object[][] |
FUNCTIONS
These are the functions in the SYSFUN schema.
|
private static java.lang.Integer |
ONE |
private static java.lang.Integer |
TWO |
private static java.lang.Integer |
ZERO |
DEFAULT_DB_DIR, DERBY_LOG, ERRORSTACKTRACEFILE| Constructor and Description |
|---|
Derby5730Test(java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
private static void |
growDatabaseFootprint(java.sql.Connection c)
Perform some database operations so that the internal structures of
the database instance (caches, for example) are filled, and the memory
footprint of the database instance grows.
|
static void |
main(java.lang.String[] args)
Boot and repeatedly reboot a database, calling SYSFUN functions in
between.
|
private static void |
prepareFunction(java.sql.Connection c,
java.lang.String name,
int args)
Prepare a call to a function.
|
static junit.framework.Test |
suite() |
void |
testLeak()
Test case for DERBY-5730.
|
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, toStringprivate static final java.lang.Integer ZERO
private static final java.lang.Integer ONE
private static final java.lang.Integer TWO
private static final java.lang.Object[][] FUNCTIONS
public static junit.framework.Test suite()
public void testLeak()
throws java.io.IOException
java.io.IOExceptionpublic static void main(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exceptionprivate static void prepareFunction(java.sql.Connection c,
java.lang.String name,
int args)
throws java.sql.SQLException
java.sql.SQLExceptionprivate static void growDatabaseFootprint(java.sql.Connection c)
throws java.sql.SQLException
java.sql.SQLExceptionApache Derby V10.10 Internals - Copyright © 2004,2014 The Apache Software Foundation. All Rights Reserved.