db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andreas Korneliussen (JIRA)" <derby-...@db.apache.org>
Subject [jira] Commented: (DERBY-1308) Tests jdbcapi/HoldabilityTest.junit, jdbcapi/UpdateXXXTest.junit,jdbcapi/SURTest.junit fail on wctme5.7_foundation
Date Wed, 24 May 2006 18:57:31 GMT
    [ http://issues.apache.org/jira/browse/DERBY-1308?page=comments#action_12413162 ] 

Andreas Korneliussen commented on DERBY-1308:
---------------------------------------------

|What was happening is that after the contribution of adding a number of methods returning
these various datasources in |util/BaseJDBCTestCase.java these j9-jvms would fall over with
a ClassDefNotFoundError. Apparently this happened as soon as a |method was added that returned
one of these not-available classes, even though the tests in question did not actually use
those |methods. 

I think that the methods added, should not be part of BaseJDBCTestCase. BaseJDBCTestCase should
be usable in all environments, and if some special methods are needed, they could be made
part of a subclass of BaseJDBCTestCase.

Therefore: instead of introducing a new super class (called SubBaseJDBCTestCase), BaseJDBCTestCase
should be simplified to only contain the methods which can be used in all environments. 
Since the added methods are static anyway, they do not even need to be part of the BaseTestCase
hierarchy, i.e they could be in a utiltity class, however if you prefer to use inheritance,
you could add a subclass of BaseJDBCTestCase with these methods (i.e if the methods are JDBC4
specific, the new subclass could be named BaseJDBC4TestCase). Then you would not need to change
the SURTest, UpdateXXTest, .., to run in J2ME environment, however some of the JDBC4 testcase
classes would need to be changed to inherit from BaseJDBC4TestCase.


> Tests jdbcapi/HoldabilityTest.junit, jdbcapi/UpdateXXXTest.junit,jdbcapi/SURTest.junit
fail on wctme5.7_foundation
> ------------------------------------------------------------------------------------------------------------------
>
>          Key: DERBY-1308
>          URL: http://issues.apache.org/jira/browse/DERBY-1308
>      Project: Derby
>         Type: Bug

>   Components: Test, Regression Test Failure
>     Versions: 10.2.0.0
>  Environment: derby jars used - 10.2.0.0 alpha - (400220), machine is a win2000.
>     Reporter: Sunitha Kambhampati
>     Assignee: Myrna van Lunteren
>     Priority: Minor
>      Fix For: 10.2.0.0
>  Attachments: DERBY-1308_20060524.diff, DERBY-1308_20060524.stat, DERBY-1308_2_20060524.diff,
DERBY-1308_2_20060524.stat
>
> 05/05/2006 regression test run of derbyall shows the following test failure with wctme5.7_foundation,

> derbyall/derbyall.fail:jdbcapi/HoldabilityTest.junit
> derbyall/derbyall.fail:jdbcapi/UpdateXXXTest.junit
> derbyall/derbyall.fail:jdbcapi/SURTest.junit
> Diff is a CNFE with ConnectionPoolDataSource.
> ********* Diff file derbyall/jdbcapi/HoldabilityTest.diff
> *** Start: HoldabilityTest jdkJ2ME Foundation Specification v1.0 derbyall:jdbcapi 2006-05-07
11:31:05 ***
> 0 add
> > Exception in thread "main" java.lang.NoClassDefFoundError: javax.sql.ConnectionPoolDataSource
> Test Failed.
> *** End:   HoldabilityTest jdkJ2ME Foundation Specification v1.0 derbyall:jdbcapi 2006-05-07
11:31:06 ***
> My guess is these tests need to excluded from running in this environment. Can someone
please confirm.  Thanks. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message