사용자 도구

사이트 도구


powermockito

차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

양쪽 이전 판이전 판
powermockito [2019/08/27 23:02] lindolpowermockito [2019/08/30 00:27] (현재) lindol
줄 11: 줄 11:
 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:  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: 
 </code> </code>
 +
 +'can not find test method'
 +
 +When you want to test single method,
 +some times if test method has @PrepareForTest annotation
 +TestRunner could not find test method.
 +
 +You can move it to class level ((Ref: How do you run a single method?))
 +
 +
  
 Add "org.powermock.*" to @PowerMockIgnore ((Ref: Powermock complains about default.properties file found in 2 places)) Add "org.powermock.*" to @PowerMockIgnore ((Ref: Powermock complains about default.properties file found in 2 places))
줄 26: 줄 36:
   * [[https://github.com/powermock/powermock/wiki/Suppress-Unwanted-Behavior|Suppress Unwanted Behavior]]   * [[https://github.com/powermock/powermock/wiki/Suppress-Unwanted-Behavior|Suppress Unwanted Behavior]]
   * [[https://github.com/powermock/powermock/wiki/Mock-System - Mock System - Mocking system classes]]   * [[https://github.com/powermock/powermock/wiki/Mock-System - Mock System - Mocking system classes]]
 +  * [[https://github.com/powermock/powermock/issues/794|How do you run a single method?]]
powermockito.1566914535.txt.gz · 마지막으로 수정됨: 2019/08/27 23:02 저자 lindol