标签: java spring unit-testing spring-test
如何将spring bean注入静态classRule?
@RunWith(SpringJUnit4ClassRunner.class) @ContextConfiguration(classes = {ConfigClass.class}) public class SimpleTest { @ClassRule public static SimpleClassRule simpleClassRule = new SimpleClassRule (); }