Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
when use @Mocked on Util class, static field may not initialized correctly and would leads the unit test in other classes to fail #336
Please provide the following information:
Here is the code:
The question1 is: When call @Mocked Utils utils; in UseUtils1Test, why the Utils.field1 initialized to a empty list. When field1 is a String instead of a list, the getField() would always work when return a String instead of a List.