db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Myrna van Lunteren (JIRA)" <j...@apache.org>
Subject [jira] Updated: (DERBY-2396) conn/DefaultLocale.java test relies on internal Derby api to determine the database's territory
Date Mon, 21 Feb 2011 18:41:38 GMT

     [ https://issues.apache.org/jira/browse/DERBY-2396?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Myrna van Lunteren updated DERBY-2396:

    Urgency: Normal
     Labels: derby_triage10_8  (was: )

> conn/DefaultLocale.java test relies on internal Derby api to determine the database's
> -----------------------------------------------------------------------------------------------
>                 Key: DERBY-2396
>                 URL: https://issues.apache.org/jira/browse/DERBY-2396
>             Project: Derby
>          Issue Type: Bug
>          Components: Test
>    Affects Versions:
>            Reporter: Mamta A. Satoor
>              Labels: derby_triage10_8
> I think Derby's testing philosphy is that the tests should be using the apis that are
available to an end user ie JDBC api. conn/DefaultLocale.java doesn't follow this rule. It
has a method called checkDatabaseLocale which uses following internal api to determine the
database's territory.
> org.apache.derby.iapi.db.Factory.getDatabaseOfConnection().getLocale().toString();
> The tests i18n/urlLocale and i18n/messageLocale rely on conn/DefaultLocale's checkDatabaseLocale
> Derby provides SYSCS_UTIL.SYSCS_GET_DATABASE_PROPERTY function to determine the value
of a property. For instance, if I create a database with attribute logDevice=c:/dellater1
then I can later find the location of database's logDevice by following statement
> But for some reason, I can't use the same for the territory attribute.
> I tried
> but it returned null.
> I tried referencing the territory attribute by it's name in services.properties and that
didn't work either
> So, I guess there are 2 steps involved
> 1)Why isn't there a way to find the value of the territory attribute?
> 2)Once we know the answer to 1) and possibly fix it, then change the conn/DefaultLocale.java
test to use the documented way of getting the territory rather than internal Derby api.

This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


View raw message