Let's say you have a method like this:
private Target createTarget(ITarget target) {
Target domainTarget = null;
try {
domainTarget = new Target(getTargetName(target), target.getId());
} catch (CreationException e) {
domainTarget = new Target("Unknown", -1);
}
return domainTarget;
}
In one case here we'd like to mock the first instance creation of Target
and throw a CreationException but we'd like to make sure that a new Target
has been created with parameters "Unknown" and -1. This is not possible today.
Original issue reported on code.google.com by johan.ha...@gmail.com on 11 Sep 2008 at 9:03
Original issue reported on code.google.com by
johan.ha...@gmail.com
on 11 Sep 2008 at 9:03