• Post Reply Bookmark Topic Watch Topic
  • New Topic

Using Assert correctly  RSS feed

 
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to use Assert.assertEquals but it is showing with a line through the text.  I attached a screen shot to this post because it does not show in the code below. Cut and paste did not include the strikethrough.  

How do I use Assert correctly?


Thanks,

Kevin


Assert-Depricated-for-Code-Ranch.JPG
[Thumbnail for Assert-Depricated-for-Code-Ranch.JPG]
assert depricated
 
Rancher
Posts: 3541
39
  • Likes 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
junit.framework.Assert was deprecated a while ago.
Most JUnit stuff i now under org.junit.
Indeed, I think with 5 it all moved around again.
 
kevin Abel
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dave,
appreciated.
I will try it now.
Thanks,
Kevin
 
We've gotta get close enough to that helmet to pull the choke on it's engine and flood his mind! Or, we could just read this tiny ad:
Why should you try IntelliJ IDEA ?
https://coderanch.com/wiki/696337/IntelliJ-IDEA
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!