use of org.apache.derbyTesting.junit.TimeZoneTestSetup in project derby by apache.
the class NativeAuthenticationServiceTest method suite.
// /////////////////////////////////////////////////////////////////////////////////
//
// JUnit BEHAVIOR
//
// /////////////////////////////////////////////////////////////////////////////////
/**
* Construct top level suite in this JUnit test
*/
public static Test suite() throws Exception {
BaseTestSuite suite = new BaseTestSuite();
//
if (enableSubprotocolTests()) {
suite.addTest((new NativeAuthenticationServiceTest(JAR_ENCRYPTED, NATIVE, LOCAL, DONT_DISABLE_AUTH)).decorate(false));
}
suite.addTest(allConfigurations(false));
if (!JDBC.vmSupportsJSR169()) {
suite.addTest(allConfigurations(true));
}
// should be OK to run in the local time zone.
return new TimeZoneTestSetup(suite, "GMT");
}
use of org.apache.derbyTesting.junit.TimeZoneTestSetup in project derby by apache.
the class AutomaticIndexStatisticsTest method suite.
public static Test suite() {
Test test = new BaseTestSuite(AutomaticIndexStatisticsTest.class);
test = new CleanDatabaseTestSetup(test);
test = TestConfiguration.additionalDatabaseDecorator(test, MASTERDB);
// TimeZoneTestSetup can probably be removed once DERBY-5974 is fixed.
return new TimeZoneTestSetup(test, "GMT");
}
use of org.apache.derbyTesting.junit.TimeZoneTestSetup in project derby by apache.
the class LocalizedDisplayScriptTest method getSuite.
/**
* Return a localized test based on the script name.
* The test is surrounded in a decorator that sets up the
* desired properties which is wrapped in a decorator
* which sets up the timezone wrapped in a decorator
* that cleans the database.
*/
private static Test getSuite() {
BaseTestSuite suite = new BaseTestSuite("localized Display");
Properties uiProps = new Properties();
uiProps.put("derby.ui.locale", "es_AR");
uiProps.put("derby.ui.codeset", ENCODING);
suite.addTest(new TimeZoneTestSetup(new SystemPropertyTestSetup(new LocalizedDisplayScriptTest("LocalizedDisplay"), uiProps), "America/Los_Angeles"));
return getIJConfig(suite);
}
Aggregations