While using JMockit I want to throw an exception upon a constructor invocation like this:
new Expectations(){
{
new FirefoxDriver();//Want to throw IllegalStateException here but how?
}
};
While using JMockit I want to throw an exception upon a constructor invocation like this:
new Expectations(){
{
new FirefoxDriver();//Want to throw IllegalStateException here but how?
}
};