class UpgradeRun extends UpgradeClassLoader
Modifier and Type | Field and Description |
---|---|
(package private) static AdditionalDb[] |
ADDITIONAL_DBS
Set of additional databases for tests that
require a one-off database.
|
jarPath, oldVersionsPath
Constructor and Description |
---|
UpgradeRun() |
Modifier and Type | Method and Description |
---|---|
private static junit.framework.Test |
baseSuite(java.lang.String name,
int phase,
int[] version)
Add the tests from the various Changes classes (sub-classes
of UpgradeChange) to the base suite which corresponds to
a single phase of a run against an old database version.
|
private static junit.framework.Test |
handleJavaSE6(int phase,
int[] version,
junit.framework.Test test)
When running against certains old releases in Java SE 6
we need to setup the connections to the old
database to not use the specific JDBC 4
datasources (e.g.
|
(package private) static boolean |
lessThan(int[] left,
int[] right)
Return true if and only if the left version is less than the
right version.
|
private static void |
runDataBaseMetaDataTest(BaseTestSuite suite,
int oldMinor)
Adds a subset of the tests from DatabaseMetaDataTest to the test suite.
|
private static boolean |
suffersFromDerby4835or5289(int[] version)
Check if a version suffers from DERBY-4835 or DERBY-5289.
|
static junit.framework.Test |
suite(int[] version,
boolean useCreateOnUpgrade) |
getTextVersion, makeClassLoader
static final AdditionalDb[] ADDITIONAL_DBS
public static junit.framework.Test suite(int[] version, boolean useCreateOnUpgrade)
private static junit.framework.Test baseSuite(java.lang.String name, int phase, int[] version)
private static boolean suffersFromDerby4835or5289(int[] version)
static boolean lessThan(int[] left, int[] right)
private static junit.framework.Test handleJavaSE6(int phase, int[] version, junit.framework.Test test)
private static void runDataBaseMetaDataTest(BaseTestSuite suite, int oldMinor)
We want to run DatabaseMetaDataTest, but it includes some features not supported in older versions, so we cannot just add the DatabaseMetaDataTest.class as is. Note also, that this does not execute fixture initialCompilationTest.
Apache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.