aspose file tools
The moose likes Testing and the fly likes simulating exceptions Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » Testing
Reply Bookmark "simulating exceptions" Watch "simulating exceptions" New topic
Author

simulating exceptions

Peter Kovac
Ranch Hand

Joined: Aug 08, 2010
Posts: 41
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

Joined: Oct 15, 2010
Posts: 25
Peter Kovac
Ranch Hand

Joined: Aug 08, 2010
Posts: 41
Thanks
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: simulating exceptions
 
Similar Threads
I am getting StreamCorruptedException
Try catch block.
How to hide key in client?
Need help in password Encryption and Decryption
String encoding and decoding