Tag: unit testing
Usually, In Java, you can use @RunWith(PowerMockRunner.class) with its mockStatic method if you really want to mock the System.getenv method because it is a static. But usually this is …
Usually, we unit tests the logics. An interface is without implementation details. A interface is just a binding a contract, but still, we can use Mockito to mock the …
I write lots of scripts (VBScript or JScript) on windows platform (under Windows Scripting Host environment). They are mainly used to test the COM object (written in Delphi Seattle). …