aemilia Hunter

Greenhorn
+ Follow
since Jan 05, 2012
aemilia likes ...
Eclipse IDE Chrome Java
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by aemilia Hunter

my code goes this way:



and my test goes this way:



Now, I am not sure if what I am doing is right or wrong, calling interrupt() before calling processThread() method.
When running the test method using djunit in eclipse, it is weird that there is no code coverage report. I am not
sure if this is a problem in eclipse or djunit.

Hello everyone! This is going to be my first question here in this forum and I don't know if this question has already been raised way back here in codeRanch.

I wanted to know what are the best approaches in testing InterruptedException.
Let's take for example this code:



Thanks in advance!