]
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: