简体   繁体   中英

import org.powermock.api.mockito.PowerMockito not found?

Please guide to fix this issue.

import org.mockito.Mockito ; works fine

import org.powermock.api.mockito.PowerMockito; org not found

import org.powermock.core.classloader.annotations.PrepareForTest; works fine

import org.powermock.modules.testng.PowerMockTestCase; works fine

import static org.junit.Assert.*;

我知道问题已解决,但如果您使用的是 Maven,则还需要包含以下内容: powermock-api-mockito

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM