Usually, In Java, you can use @RunWith(PowerMockRunner.class) with its mockStatic method if you really want to mock the System.getenv method ...
確定! 回上一頁