[jira] Created: (LANG-384) javadoc is still buggy - the test is testing a different situation

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[jira] Created: (LANG-384) javadoc is still buggy - the test is testing a different situation

AD_LB (Jira)
javadoc is still buggy - the test is testing a different situation
------------------------------------------------------------------

                 Key: LANG-384
                 URL: https://issues.apache.org/jira/browse/LANG-384
             Project: Commons Lang
          Issue Type: Sub-task
    Affects Versions: 2.3
            Reporter: Tomasz Bartczak
            Priority: Trivial


the test is testing
assertEquals(StringUtils.removeEnd("www.domain.com.", ".com"), "www.domain.com.");

while the javadoc shows

StringUtils.removeEnd("www.domain.com", ".com.")  = "www.domain.com."

this is the fail for javadoc because
StringUtils.removeEnd("www.domain.com", ".com.")  returns "www.domain.com"  ( without a dot )

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Closed: (LANG-384) javadoc is still buggy - the test is testing a different situation

AD_LB (Jira)

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

Henri Yandell closed LANG-384.
------------------------------

       Resolution: Fixed
    Fix Version/s: 2.4

> javadoc is still buggy - the test is testing a different situation
> ------------------------------------------------------------------
>
>                 Key: LANG-384
>                 URL: https://issues.apache.org/jira/browse/LANG-384
>             Project: Commons Lang
>          Issue Type: Sub-task
>    Affects Versions: 2.3
>            Reporter: Tomasz Bartczak
>            Priority: Trivial
>             Fix For: 2.4
>
>
> the test is testing
> assertEquals(StringUtils.removeEnd("www.domain.com.", ".com"), "www.domain.com.");
> while the javadoc shows
> StringUtils.removeEnd("www.domain.com", ".com.")  = "www.domain.com."
> this is the fail for javadoc because
> StringUtils.removeEnd("www.domain.com", ".com.")  returns "www.domain.com"  ( without a dot )

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (LANG-384) javadoc is still buggy - the test is testing a different situation

AD_LB (Jira)
In reply to this post by AD_LB (Jira)

    [ https://issues.apache.org/jira/browse/LANG-384?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12554222 ]

Henri Yandell commented on LANG-384:
------------------------------------

Thanks Tomasz, applied to r606672.

> javadoc is still buggy - the test is testing a different situation
> ------------------------------------------------------------------
>
>                 Key: LANG-384
>                 URL: https://issues.apache.org/jira/browse/LANG-384
>             Project: Commons Lang
>          Issue Type: Sub-task
>    Affects Versions: 2.3
>            Reporter: Tomasz Bartczak
>            Priority: Trivial
>             Fix For: 2.4
>
>
> the test is testing
> assertEquals(StringUtils.removeEnd("www.domain.com.", ".com"), "www.domain.com.");
> while the javadoc shows
> StringUtils.removeEnd("www.domain.com", ".com.")  = "www.domain.com."
> this is the fail for javadoc because
> StringUtils.removeEnd("www.domain.com", ".com.")  returns "www.domain.com"  ( without a dot )

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.