Win a copy of OCP Java SE 8 Programmer II Exam Study Guide this week in the OCP forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Using Assert correctly  RSS feed

 
Ranch Hand
Posts: 56
  • 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: 3385
38
  • 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: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dave,
appreciated.
I will try it now.
Thanks,
Kevin
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!