在使用JMockit时,我想在构造函数调用上抛出异常,如下所示:
new Expectations(){
{
new FirefoxDriver();//Want to throw IllegalStateException here but how?
}
};
Run Code Online (Sandbox Code Playgroud) 我们如何从chrome扩展中执行(shell或bash)命令; Chrome API中是否提供了一种方法?