[arquillian-issues] [JBoss JIRA] Closed: (ARQ-90) Examples and docs use JUnit 3's Assert

Pete Muir (JIRA) jira-events at lists.jboss.org
Wed Mar 10 11:53:46 EST 2010


     [ https://jira.jboss.org/jira/browse/ARQ-90?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pete Muir closed ARQ-90.
------------------------

    Fix Version/s: 1.0.0.Alpha1
       Resolution: Done


> Examples and docs use JUnit 3's Assert
> --------------------------------------
>
>                 Key: ARQ-90
>                 URL: https://jira.jboss.org/jira/browse/ARQ-90
>             Project: Arquillian
>          Issue Type: Bug
>          Components: Documentation, Examples
>    Affects Versions: 1.0.0.Alpha1
>            Reporter: Jozef Hartinger
>            Assignee: Pete Muir
>            Priority: Minor
>             Fix For: 1.0.0.Alpha1
>
>
> JUnit 4.6 contains two Assert classes. The first one junit.framework.Assert is used by Arquillian however this one is there only for a backward compatibility with JUnit 3. The other one, org.junit.Assert, is recommended.
> The issue with that is that in docs, the code samples do not contain imports. Therefore, if a user copies the code, code completion will suggest importing the second Assert (org.junit.Assert), in which the assertEquals(double, double) method is deprecated and the test will fail.
> I suggest to modify the examples to:
> a) use org.junit.Assert
> b) use assertEquals(double, double, double) method
> c) propagate this change to docs

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the arquillian-issues mailing list