사용자 도구

사이트 도구


powermockito

문서의 이전 판입니다!


Troubleshooting

'Properties file org/powermock/default.properties is found in 2 places:'

Example

Properties file org/powermock/default.properties is found in 2 places: 
ConfigurationSource{location='file:/Users/lindolsang/.gradle/caches/modules-2/files-2.1/org.powermock/powermock-core/2.0.0/c34a6706f810172e210d218627abf0541b9d66d2/powermock-core-2.0.0.jar!/org/powermock/default.properties}
ConfigurationSource{location='file:/Users/lindolsang/.gradle/caches/modules-2/files-2.1/org.powermock/powermock-core/2.0.0/c34a6706f810172e210d218627abf0541b9d66d2/powermock-core-2.0.0.jar!/org/powermock/default.properties}. Which one will be used is undefined. Please, remove duplicated configuration file (or second PowerMock jar file) from class path to have stable tests.Properties file org/powermock/default.properties is found in 2 places: 

Add “org.powermock.*” to @PowerMockIgnore 1)

Example:

@PowerMockIgnore({"org.mockito.*", "org.robolectric.*", "android.*", "org.json.*", "androidx.*", "org.powermock.*"})

References

1)
Ref: Powermock complains about default.properties file found in 2 places
powermockito.1566654506.txt.gz · 마지막으로 수정됨: 2019/08/24 22:48 저자 lindol