Why PowerMock is attempting to load the server.xml file if the static class is mocked out?
问题 I am trying to unit test a code that deals with Message Logging which brings in a lot of environmental dependency. This Message Logger is a framework used by all developers across teams. I have used PowerMock for the same since the Logging class is a static class. Though the Junit Unit test runs Green after using Power Mock, it is still attempting to load the server.xml file. The Class calls are as follows Unit Test Class calls -> Static Logger Class calls-> Static Environment Class. This