Details
Description
public final StringBuffer format(Object number, StringBuffer toAppendTo, FieldPosition fieldPosition)
As per spec :
Throws:
IllegalArgumentException - if number is null or not an instance of Number
When i supply number as null
I expect - IAE
actual is - NullpointerException
As per spec :
Throws:
IllegalArgumentException - if number is null or not an instance of Number
When i supply number as null
I expect - IAE
actual is - NullpointerException