草庐IT

PowerMockRule

全部标签

java - 不能将 PowerMockRule 与 spring 一起使用

我想在spring中使用PowerMockRule,我的测试类如下:@RunWith(SpringJUnit4ClassRunner.class)@TestExecutionListeners({WebContextTestExecutionListener.class,DependencyInjectionTestExecutionListener.class,DirtiesContextTestExecutionListener.class,TransactionalTestExecutionListener.class})@ActiveProfiles("test")@Dirti