I would like to mock the new instance of java.io.File with any not null parameter with JMockit. Here is the code
newInstance("java.io.File", (String) withNotNull(), (String) withNotNull());
But it keeps saying Invalid null value passed as argument 0
and I don't know why because the first parameter is withNotNull()
Please help!