powermock : ProcessBuilder redirectErrorStream giving nullPointerException
- by kaustubh9
I am using powermock to mock some native command invocation using process builder. the strange thing is these test pass sometimes and fail sometimes giving a NPE. Is this a powermock issue or some gotcha in the program.
the snippet of the class under test is..
public void method1(String jsonString, String filename) {
try {
…