Java Code Examples for org.apache.derbyTesting.junit.TestConfiguration#defaultSuite()

The following examples show how to use org.apache.derbyTesting.junit.TestConfiguration#defaultSuite() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: BlobTest.java    From gemfirexd-oss with Apache License 2.0 5 votes vote down vote up
/**
 * Create test suite for this test.
 */
public static Test suite()
{
  // GemStone changes BEGIN
  //   We fail-fast on conflicts, so don't do lock timeouts
  return new BlobClobTestSetup(TestConfiguration.defaultSuite(BlobTest.class, false));
  //        return new BlobClobTestSetup(
  //                // Reduce lock timeouts so lock test case does not take too long
  //                DatabasePropertyTestSetup.setLockTimeouts(
  //                        TestConfiguration.defaultSuite(BlobTest.class, false),
  //                        2,
  //                        4));
  // GemStone changes END
}
 
Example 2
Source File: BlobTest.java    From gemfirexd-oss with Apache License 2.0 5 votes vote down vote up
/**
 * Create test suite for this test.
 */
public static Test suite()
{
  // GemStone changes BEGIN
  //   We fail-fast on conflicts, so don't do lock timeouts
  return new BlobClobTestSetup(TestConfiguration.defaultSuite(BlobTest.class, false));
  //        return new BlobClobTestSetup(
  //                // Reduce lock timeouts so lock test case does not take too long
  //                DatabasePropertyTestSetup.setLockTimeouts(
  //                        TestConfiguration.defaultSuite(BlobTest.class, false),
  //                        2,
  //                        4));
  // GemStone changes END
}
 
Example 3
Source File: ClobStoredProcedureTest.java    From gemfirexd-oss with Apache License 2.0 5 votes vote down vote up
/**
 * Create a suite of tests.
 * @return the test suite created.
 */
public static Test suite() {
    if (JDBC.vmSupportsJSR169()) {
        return new TestSuite("empty: client not supported on JSR169; procs use DriverMgr");
    }
    else {
        return TestConfiguration.defaultSuite(
                ClobStoredProcedureTest.class);
    }
}
 
Example 4
Source File: ScrollResultSetTest.java    From gemfirexd-oss with Apache License 2.0 5 votes vote down vote up
public static Test suite() {
            
    // Requires holdability
    if (JDBC.vmSupportsJDBC3() || JDBC.vmSupportsJSR169()) {
        // Run embedded and client
    	return TestConfiguration.defaultSuite(ScrollResultSetTest.class);
    }
    
    // empty suite, no holdability supported.
    return new TestSuite(
            "Empty ScrollResultSetTest suite, no support for holdability");
}
 
Example 5
Source File: ClobTest.java    From gemfirexd-oss with Apache License 2.0 5 votes vote down vote up
/**
 * Create test suite for this test.
 */
public static Test suite()
{
  // GemStone changes BEGIN
  //   We fail-fast on conflicts, so don't do lock timeouts
  return new BlobClobTestSetup(TestConfiguration.defaultSuite(ClobTest.class, false));
  //        return new BlobClobTestSetup(
  //                // Reduce lock timeouts so lock test case does not take too long
  //                DatabasePropertyTestSetup.setLockTimeouts(
  //                        TestConfiguration.defaultSuite(ClobTest.class, false),
  //                        2,
  //                        4));
  // GemStone changes END
}
 
Example 6
Source File: ClobTest.java    From gemfirexd-oss with Apache License 2.0 5 votes vote down vote up
/**
 * Create test suite for this test.
 */
public static Test suite()
{
  // GemStone changes BEGIN
  //   We fail-fast on conflicts, so don't do lock timeouts
  return new BlobClobTestSetup(TestConfiguration.defaultSuite(ClobTest.class, false));
  //        return new BlobClobTestSetup(
  //                // Reduce lock timeouts so lock test case does not take too long
  //                DatabasePropertyTestSetup.setLockTimeouts(
  //                        TestConfiguration.defaultSuite(ClobTest.class, false),
  //                        2,
  //                        4));
  // GemStone changes END
}
 
Example 7
Source File: AIjdbcTest.java    From gemfirexd-oss with Apache License 2.0 5 votes vote down vote up
/**
 * Returns the implemented tests.
 * 
 * @return An instance of <code>Test</code> with the implemented tests to
 *         run.
 */
public static Test suite() {
	return new CleanDatabaseTestSetup(TestConfiguration.defaultSuite(AIjdbcTest.class, false)) {
		protected void decorateSQL(Statement stmt) throws SQLException {
			stmt.execute("create table tab1 (x int, y int generated always as identity,z char(2))");
			stmt.execute("create view tab1_view (a,b) as select y,y+1 from tab1");
		}
	};
}
 
Example 8
Source File: UnsupportedVetter.java    From gemfirexd-oss with Apache License 2.0 4 votes vote down vote up
public static Test suite() {
    return TestConfiguration.defaultSuite(UnsupportedVetter.class);
}
 
Example 9
Source File: PrepStmtMetaDataTest.java    From gemfirexd-oss with Apache License 2.0 4 votes vote down vote up
public static Test suite() {
    return TestConfiguration.defaultSuite(PrepStmtMetaDataTest.class);
}
 
Example 10
Source File: LobLengthTest.java    From gemfirexd-oss with Apache License 2.0 4 votes vote down vote up
public static Test suite() 
{
    return TestConfiguration.defaultSuite(LobLengthTest.class);
}
 
Example 11
Source File: URCoveringIndexTest.java    From gemfirexd-oss with Apache License 2.0 4 votes vote down vote up
public static Test suite() {
    return TestConfiguration.defaultSuite(URCoveringIndexTest.class);
}
 
Example 12
Source File: ScrollCursors2Test.java    From gemfirexd-oss with Apache License 2.0 4 votes vote down vote up
public static Test suite() {
    return TestConfiguration.defaultSuite(ScrollCursors2Test.class);
}
 
Example 13
Source File: UnsupportedVetter.java    From gemfirexd-oss with Apache License 2.0 4 votes vote down vote up
public static Test suite() {
    return TestConfiguration.defaultSuite(UnsupportedVetter.class);
}
 
Example 14
Source File: ResultSetMetaDataTest.java    From gemfirexd-oss with Apache License 2.0 4 votes vote down vote up
/**
 * Return suite with all tests of the class.
 */
public static Test suite() {
    return TestConfiguration.defaultSuite(ResultSetMetaDataTest.class);
}
 
Example 15
Source File: BlobUpdatableStreamTest.java    From gemfirexd-oss with Apache License 2.0 4 votes vote down vote up
public static Test suite () {
    return TestConfiguration.defaultSuite (
            BlobUpdatableStreamTest.class);
}
 
Example 16
Source File: JDBC40TranslationTest.java    From gemfirexd-oss with Apache License 2.0 4 votes vote down vote up
public static Test suite() {
    return TestConfiguration.defaultSuite(JDBC40TranslationTest.class);
}
 
Example 17
Source File: OLAPTest.java    From gemfirexd-oss with Apache License 2.0 4 votes vote down vote up
public static Test suite() {
  return TestConfiguration.defaultSuite(OLAPTest.class);
}
 
Example 18
Source File: VerifySignatures.java    From gemfirexd-oss with Apache License 2.0 2 votes vote down vote up
/**
 * Build a suite of tests to be run.
 *
 * @return a test suite
 */
public static Test suite()  {
    
    return TestConfiguration.defaultSuite(VerifySignatures.class);
}
 
Example 19
Source File: MathTrigFunctionsTest.java    From gemfirexd-oss with Apache License 2.0 2 votes vote down vote up
/**
    * Runs the tests in the embedded and client server configuration
    * as the JDBC escape function testing is relevant for both drivers.
    */
public static Test suite() {
       return TestConfiguration.defaultSuite(MathTrigFunctionsTest.class);
}
 
Example 20
Source File: VerifySignatures.java    From gemfirexd-oss with Apache License 2.0 2 votes vote down vote up
/**
 * Build a suite of tests to be run.
 *
 * @return a test suite
 */
public static Test suite()  {
    
    return TestConfiguration.defaultSuite(VerifySignatures.class);
}