How can we mock File.createTempFile()
to return our mocked File object?
It should return our mocked file object instead of creating a new temp file and return new object.
How can we mock File.createTempFile()
to return our mocked File object?
It should return our mocked file object instead of creating a new temp file and return new object.
Copyright © 2021 Jogjafile Inc.
This should do the trick
cannot suggest more without the code or test class