我正在尝试使用模拟 Intent 对象,但是当使用来自 PowerMockito 的 whenNew 时,我无法模拟构造函数。我已经尝试了所有可能的参数组合,但它不起作用。
android powermock android-intent powermockito
android ×1
android-intent ×1
powermock ×1
powermockito ×1