portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Raphaël Luta <raph...@apache.org>
Subject Re: [J2] Registry Unit Test Potential Bug
Date Fri, 29 Jul 2005 08:27:15 GMT
David Le Strat wrote:
> All,
> 
> I found an interesting problem with the registry.  The
> reason I stumbled on that problem is that the test
> failed with OJB 1.0.3.  I think we have a bug with the
> current version of OJB.
> 
> The registry tests insert WebAppDescriptionImpl as
> follow:
> 
> webApp.addDescription(Locale.FRENCH, "Description: Le
> fromage est dans mon pantalon!");
> 
> INSERT INTO LOCALIZED_DESCRIPTION
> VALUES(281,181,'org.apache.jetspeed.om.impl.WebAppDescriptionImpl','Description:
> Le fromage est dans mon pantalon!','fr,,')
> 
> The description is added in french.
> 
> The test validation does:
> 
> assertNotNull("Web app did NOT persist its
> description",
> webApp.getDescription(Locale.getDefault()));
> 
> This assertion should fail.  It should be
> webApp.getDescription(Locale.FRENCH) that returns a
> record.  With current version or OJB, it works either
> way: Locale.FRENCH or (Locale.getDefault().
> 

Make sure to notify the OJB community about this issue.
Brian McCallister told me at ApacheCon that they would diligently
investigate/fix any bugs we could uncover and for which we could create a test case.

-- 
Raphaël Luta - raphael@apache.org
Apache Portals - Enterprise Portal in Java
http://portals.apache.org/

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


Mime
View raw message