You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ws.apache.org by "Andreas Veithen (JIRA)" <ji...@apache.org> on 2016/09/26 18:38:21 UTC

[jira] [Resolved] (AXIOM-486) AxiomTestVerb should not extend TestVerb

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

Andreas Veithen resolved AXIOM-486.
-----------------------------------
       Resolution: Fixed
         Assignee: Andreas Veithen
    Fix Version/s: 1.2.20

> AxiomTestVerb should not extend TestVerb
> ----------------------------------------
>
>                 Key: AXIOM-486
>                 URL: https://issues.apache.org/jira/browse/AXIOM-486
>             Project: Axiom
>          Issue Type: Improvement
>    Affects Versions: 1.2.19
>            Reporter: Christian Gruber
>            Assignee: Andreas Veithen
>            Priority: Minor
>             Fix For: 1.2.20
>
>
> AxiomTestVerb currently extends TestVerb, presumably to permit someone to only have to statically import AxiomTestVerb.assertThat; However, TestVerb was not built for extension, will be marked final in more upcoming versions of Truth, especially 1.0.
> The fix is simple.  Extend AbstractVerb if (and only if) you need its functionality, and otherwise simply statically import both AxiomTestVerb.assertThat and Truth.assertThat since the overloads are not ambiguous in their type signatures (and erasure). 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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