You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by David Le Strat <dl...@yahoo.com> on 2005/07/28 18:41:50 UTC
[J2] Registry Unit Test Potential Bug
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?
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
Re: [J2] Registry Unit Test Potential Bug
Posted by Shinsuke SUGAYA <sh...@yahoo.co.jp>.
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
Re: [J2] Registry Unit Test Potential Bug
Posted by Raphaël Luta <ra...@apache.org>.
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