You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "Pinaki Poddar (JIRA)" <ji...@apache.org> on 2009/02/25 21:49:01 UTC

[jira] Created: (OPENJPA-942) Allow test to specify target database platform

Allow test to specify target database platform
----------------------------------------------

                 Key: OPENJPA-942
                 URL: https://issues.apache.org/jira/browse/OPENJPA-942
             Project: OpenJPA
          Issue Type: Improvement
            Reporter: Pinaki Poddar


Some tests are targeted for specific databases. But mostly the tests run on all supported databases. Currently, the tests do not (or can not) specify their target database, if any.
This improvement will introduce the following:

Annotate a TestCase with
@DatabasePlatform("a,b,c")

where "a", "b", "c" denote fully-qualified class names of JDBC drivers. 

When a test is annotated then at least one of these drivers must be found in the current test's execution classpath for  the test to run. Otherwise test harness will not execute the test.

If no annotation is specified then the test is assumed to run in all platforms.


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.