Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: FEST-Assert 1.2
-
Fix Version/s: FEST-Assert 1.3
-
Component/s: Assert
-
Labels:None
-
Number of attachments :
Description
I would like to assert that Integer instance is null. This however needs nasty workaround:
Integer i = null; assertThat(i).isNull(); //does not compile assertThat((Object)i).isNull();
This is because Assertions#assertThat taking Integer instance does automatic unboxing and returns org.fest.assertions.IntAssert instance, that inherits from org.fest.assertions.PrimitiveAssert rather than returning org.fest.assertions.GenericAssert.
Issue Links
Activity
Alex Ruiz
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Assignee | Alex Ruiz [ alexruiz ] | |
| Fix Version/s | FEST-Assert 1.3 [ 15940 ] |
Ansgar Konermann
made changes -
Alex Ruiz
made changes -
| Assignee | Alex Ruiz [ alexruiz ] | Yvonne Wang [ wanghy ] |
Ansgar Konermann
made changes -
Ansgar Konermann
made changes -
| Assignee | Yvonne Wang [ wanghy ] | Ansgar Konermann [ konermann ] |
Ansgar Konermann
made changes -
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Resolution | Fixed [ 1 ] |