• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

simulating exceptions

 
Peter Kovac
Ranch Hand
Posts: 42
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I need to test this method catch block but couldn't find out how to simulate UnsupportedEncodingException. I'm wondering if it's possible to test this block without changing the code at all.



Thanks,
 
enric jaen
Greenhorn
Posts: 27
  • 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
Peter Kovac
Ranch Hand
Posts: 42
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic