In java it is saying my assertEquals method is deprecated, what does this mean?
I'm trying to make a test method, and its literally crossing out the assertEquals.
Printable View
In java it is saying my assertEquals method is deprecated, what does this mean?
I'm trying to make a test method, and its literally crossing out the assertEquals.
Why not look at the latest API for the classes and methods you are using - it will tell you faster than anyone of us can. I presume you are using JUnit?
Assert (JUnit API)
yes, im using JUnit.
i have assertEquals("failure", double, method)
Where failure is the console text if the method doesnt work
Double is a number
and the method is an object calling a getter method.
I don't see why I would be getting deprecated.
Again, read my post above. The API should explicitly state the method as deprecated, and possibly suggest alternatives.Quote:
I don't see why I would be getting deprecated.