portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shinsuke SUGAYA <shins...@yahoo.co.jp>
Subject Re: [J2] Registry Unit Test Potential Bug
Date Thu, 28 Jul 2005 23:57:48 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().
> 
> Thoughts?

What locale do you run on test? C or en_US.UTF-8??

Thanks,
  shinsuke


> Regards,
> 
> David Le Strat.
> 
> ________________________
> David Le Strat
> Blogging @ http://dlsthoughts.blogspot.com
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
> For additional commands, e-mail: jetspeed-dev-help@portals.apache.org
> 

__________________________________
Save the earth
http://pr.mail.yahoo.co.jp/ondanka/


---------------------------------------------------------------------
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