• 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:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • 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
 
Master Rancher
Posts: 3631
40
  • 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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!