如何将spring bean注入静态classRule?

时间:2017-02-16 09:58:20

标签: 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 ();

}

0 个答案:

没有答案