public class Decorator
extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
private |
Decorator() |
| Modifier and Type | Method and Description |
|---|---|
static junit.framework.Test |
attributesDatabase(java.util.Properties attributes,
junit.framework.Test test)
Decorate a test (or suite of tests) to use a single use database
as the default database with a specified set connection attributes.
|
static junit.framework.Test |
encryptedDatabase(junit.framework.Test test)
Decorate a set of tests to use an encrypted
single use database.
|
static junit.framework.Test |
encryptedDatabase(junit.framework.Test test,
java.lang.String algorithm)
Decorate a set of tests to use an encrypted
single use database.
|
static junit.framework.Test |
encryptedDatabaseBpw(junit.framework.Test test,
java.lang.String bootPassword)
Decorate a set of tests to use an encrypted
single use database.
|
static junit.framework.Test |
encryptedDatabaseBpw(junit.framework.Test test,
java.lang.String algorithm,
java.lang.String bootPassword)
Decorate a set of tests to use an encrypted
single use database.
|
private static java.lang.String |
getBootPhrase(int length) |
static junit.framework.Test |
logDeviceAttributeDatabase(junit.framework.Test test,
java.lang.String logDevice)
Decorate a set of tests to use a single use database with
logDevice pointing a log directory to non-default location
|
static junit.framework.Test |
territoryCollatedCaseInsensitiveDatabase(junit.framework.Test test,
java.lang.String locale)
Decorate a set of tests to use an single
use database with TERRITORY_BASED:SECONDARY collation
set to the passed in locale.
|
static junit.framework.Test |
territoryCollatedDatabase(junit.framework.Test test,
java.lang.String locale)
Decorate a set of tests to use an single
use database with TERRITORY_BASED collation
set to the passed in locale.
|
public static junit.framework.Test encryptedDatabase(junit.framework.Test test)
test - test to decoratepublic static junit.framework.Test encryptedDatabaseBpw(junit.framework.Test test,
java.lang.String bootPassword)
test - test to decoratebootPassword - boot passphrase to usepublic static junit.framework.Test encryptedDatabase(junit.framework.Test test,
java.lang.String algorithm)
test - test to decoratepublic static junit.framework.Test encryptedDatabaseBpw(junit.framework.Test test,
java.lang.String algorithm,
java.lang.String bootPassword)
test - test to decoratebootPassword - boot passphrase to useprivate static java.lang.String getBootPhrase(int length)
public static junit.framework.Test territoryCollatedDatabase(junit.framework.Test test,
java.lang.String locale)
locale - Locale used to set territory JDBC attribute. If null
then only collation=TERRITORY_BASED will be set.public static junit.framework.Test logDeviceAttributeDatabase(junit.framework.Test test,
java.lang.String logDevice)
public static junit.framework.Test territoryCollatedCaseInsensitiveDatabase(junit.framework.Test test,
java.lang.String locale)
locale - Locale used to set territory JDBC attribute. If null
then only collation=TERRITORY_BASED:SECONDARY will be set.public static junit.framework.Test attributesDatabase(java.util.Properties attributes,
junit.framework.Test test)
attributes - properties to set in the connection URL or in the
connectionAttributes of a data source when connecting to the databasetest - Test to decorateApache Derby V10.10 Internals - Copyright © 2004,2014 The Apache Software Foundation. All Rights Reserved.