You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by "Jonathan Gallimore (Jira)" <ji...@apache.org> on 2020/08/05 20:46:00 UTC

[jira] [Updated] (TOMEE-1417) [TEST] Incorrect test function PropertiesTest assertTest

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

Jonathan Gallimore updated TOMEE-1417:
--------------------------------------
    Fix Version/s:     (was: 7.0.9)

> [TEST] Incorrect test function PropertiesTest assertTest
> --------------------------------------------------------
>
>                 Key: TOMEE-1417
>                 URL: https://issues.apache.org/jira/browse/TOMEE-1417
>             Project: TomEE
>          Issue Type: Improvement
>    Affects Versions: 7.0.0
>            Reporter: Daniel Kasmeroglu
>            Priority: Trivial
>
> The helper function _PropertiesTest$assertProperties_ contains an invalid comparison for a different property:
> {code:java}
> if (expectedValue != expectedValue && (expectedValue == null || !expectedValue.equals(actual))) {
>   ...
> }
> {code}
> The comparison *expectedValue != expectedValue* obviously always returns false so the contained code will never be executed.
> Furthermore the only use cases of this function returns at it's entry due to the fact that the supplied parameters are always equal.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)