Java Code Examples for org.apache.derbyTesting.junit.TestConfiguration#embeddedSuite()
The following examples show how to use
org.apache.derbyTesting.junit.TestConfiguration#embeddedSuite() .
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: UpdatableResultSetTest.java From gemfirexd-oss with Apache License 2.0 | 6 votes |
/** Create a test suite with all tests in this class. */ public static Test suite() { // Test will fail with JCC. if (usingDB2Client()) { // empty suite return new TestSuite(); } // GemStone changes BEGIN // updatable resultsets not yet implemented for clients return TestConfiguration.embeddedSuite(UpdatableResultSetTest.class); /* (original code) return TestConfiguration.defaultSuite(UpdatableResultSetTest.class); */ // GemStone changes END }
Example 2
Source File: PrepareStatementTest.java From gemfirexd-oss with Apache License 2.0 | 5 votes |
/** * Adds this class to the default suite. That is, all test cases will be * run in both embedded and client/server. */ public static Test suite() { if ( JDBC.vmSupportsJSR169()) // see DERBY-2233 for details return new TestSuite("empty PrepareStatementTest - client not supported on JSR169"); else // GemStone changes BEGIN return TestConfiguration.embeddedSuite(PrepareStatementTest.class); /* (original code) return TestConfiguration.defaultSuite(PrepareStatementTest.class); */ // GemStone changes END }
Example 3
Source File: UnaryArithmeticParameterTest.java From gemfirexd-oss with Apache License 2.0 | 5 votes |
/** * Create a suite of tests. */ public static Test suite() { // This test should not get run under jdk13 because it uses ParameterMetaData calls // to ensure that the parameter type for dynamic parameter // for unary minus and plus get set correctly from the context in which they are used. if ( !JDBC.vmSupportsJDBC3()) return new TestSuite("empty UnaryArithmeticParameterTest - supported only from JDBC3.0 and above"); else{ // FIXME: #48136 fails with dafaultsuite // return TestConfiguration.defaultSuite(UnaryArithmeticParameterTest.class); return TestConfiguration.embeddedSuite(UnaryArithmeticParameterTest.class); } }
Example 4
Source File: PrepareStatementTest.java From gemfirexd-oss with Apache License 2.0 | 5 votes |
/** * Adds this class to the default suite. That is, all test cases will be * run in both embedded and client/server. */ public static Test suite() { if ( JDBC.vmSupportsJSR169()) // see DERBY-2233 for details return new TestSuite("empty PrepareStatementTest - client not supported on JSR169"); else // GemStone changes BEGIN return TestConfiguration.embeddedSuite(PrepareStatementTest.class); /* (original code) return TestConfiguration.defaultSuite(PrepareStatementTest.class); */ // GemStone changes END }
Example 5
Source File: CreateTableFromQueryTest.java From gemfirexd-oss with Apache License 2.0 | 5 votes |
/** * Create a suite of tests. */ public static Test suite() { Test test = TestConfiguration.embeddedSuite(CreateTableFromQueryTest.class); return new CleanDatabaseTestSetup(test) { protected void decorateSQL(Statement stmt) throws SQLException { decorate(stmt); } }; }
Example 6
Source File: CreateTableFromQueryTest.java From gemfirexd-oss with Apache License 2.0 | 5 votes |
/** * Create a suite of tests. */ public static Test suite() { Test test = TestConfiguration.embeddedSuite(CreateTableFromQueryTest.class); return new CleanDatabaseTestSetup(test) { protected void decorateSQL(Statement stmt) throws SQLException { decorate(stmt); } }; }
Example 7
Source File: Bug5052rtsTest.java From gemfirexd-oss with Apache License 2.0 | 5 votes |
/** * 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 .embeddedSuite(Bug5052rtsTest.class)) { protected void decorateSQL(Statement stmt) throws SQLException { stmt .execute("create table tab1 (COL1 int, COL2 smallint, COL3 real)"); stmt.executeUpdate("insert into tab1 values(1, 2, 3.1)"); stmt.executeUpdate("insert into tab1 values(2, 2, 3.1)"); } }; }
Example 8
Source File: UnaryArithmeticParameterTest.java From gemfirexd-oss with Apache License 2.0 | 5 votes |
/** * Create a suite of tests. */ public static Test suite() { // This test should not get run under jdk13 because it uses ParameterMetaData calls // to ensure that the parameter type for dynamic parameter // for unary minus and plus get set correctly from the context in which they are used. if ( !JDBC.vmSupportsJDBC3()) return new TestSuite("empty UnaryArithmeticParameterTest - supported only from JDBC3.0 and above"); else{ // FIXME: #48136 fails with dafaultsuite // return TestConfiguration.defaultSuite(UnaryArithmeticParameterTest.class); return TestConfiguration.embeddedSuite(UnaryArithmeticParameterTest.class); } }
Example 9
Source File: Bug4356Test.java From gemfirexd-oss with Apache License 2.0 | 5 votes |
/** * 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 .embeddedSuite(Bug4356Test.class)) { protected void decorateSQL(Statement stmt) throws SQLException { stmt.executeUpdate("CREATE TABLE T1 (a integer, b integer)"); stmt.executeUpdate("CREATE TABLE T2 (a integer)"); stmt.executeUpdate("INSERT INTO T2 VALUES(1)"); } }; }
Example 10
Source File: RenameTableTest.java From gemfirexd-oss with Apache License 2.0 | 4 votes |
public static Test suite() { return TestConfiguration.embeddedSuite(RenameTableTest.class); }
Example 11
Source File: DeclareGlobalTempTableJavaTest.java From gemfirexd-oss with Apache License 2.0 | 4 votes |
public static Test suite() { return TestConfiguration.embeddedSuite(DeclareGlobalTempTableJavaTest.class); }
Example 12
Source File: TriggerTest.java From gemfirexd-oss with Apache License 2.0 | 4 votes |
/** * Run only in embedded as TRIGGERs are server side logic. * Also the use of a ThreadLocal to check state requires * embedded. */ public static Test suite() { return new CleanDatabaseTestSetup( TestConfiguration.embeddedSuite(TriggerTest.class)); }
Example 13
Source File: ErrorStreamTest.java From gemfirexd-oss with Apache License 2.0 | 4 votes |
public static Test suite() { return TestConfiguration.embeddedSuite(ErrorStreamTest.class); }
Example 14
Source File: CharacterStreamsTest.java From gemfirexd-oss with Apache License 2.0 | 4 votes |
public static Test suite() { // Run only in embedded mode until DERBY-2017 is fixed. return TestConfiguration.embeddedSuite(CharacterStreamsTest.class); }
Example 15
Source File: RenameTableTest.java From gemfirexd-oss with Apache License 2.0 | 4 votes |
public static Test suite() { return TestConfiguration.embeddedSuite(RenameTableTest.class); }
Example 16
Source File: CharacterStreamsTest.java From gemfirexd-oss with Apache License 2.0 | 4 votes |
public static Test suite() { // Run only in embedded mode until DERBY-2017 is fixed. return TestConfiguration.embeddedSuite(CharacterStreamsTest.class); }
Example 17
Source File: DeclareGlobalTempTableJavaTest.java From gemfirexd-oss with Apache License 2.0 | 4 votes |
public static Test suite() { return TestConfiguration.embeddedSuite(DeclareGlobalTempTableJavaTest.class); }
Example 18
Source File: RenameIndexTest.java From gemfirexd-oss with Apache License 2.0 | 2 votes |
public static Test suite() { return TestConfiguration.embeddedSuite(RenameIndexTest.class); }
Example 19
Source File: CastingTest.java From gemfirexd-oss with Apache License 2.0 | 2 votes |
/** * Testing server-side behaviour so run in embedded only. */ public static Test suite() { return TestConfiguration.embeddedSuite(CastingTest.class); }
Example 20
Source File: RenameIndexTest.java From gemfirexd-oss with Apache License 2.0 | 2 votes |
public static Test suite() { return TestConfiguration.embeddedSuite(RenameIndexTest.class); }