• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Junilu Lacar
  • Paul Clapham
  • Knute Snortum
Saloon Keepers:
  • Stephan van Hulst
  • Ron McLeod
  • Tim Moores
  • salvin francis
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Vijitha Kumara

Using Assert correctly  RSS feed

 
Ranch Hand
Posts: 70
  • 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: 3985
47
  • 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: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dave,
appreciated.
I will try it now.
Thanks,
Kevin
 
Time is mother nature's way of keeping everything from happening at once. And this is a tiny ad:
global solutions you can do in your home or backyard
https://coderanch.com/t/708587/global-solutions-home-backyard
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!